Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ PennMUSH ➜ Running the server ➜ PreCompiled Win32 Pennmush binary and .po files ?

PreCompiled Win32 Pennmush binary and .po files ?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by AnyKind   Belgium  (7 posts)  Bio
Date Fri 05 Mar 2004 09:25 PM (UTC)
Message
Hi,

I wanted to know if there was a way to have pennmush work with .po files if i use precompiled win32 binaries.

Thx
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 06 Mar 2004 (UTC)
Message
See Running PennMUSH under win32 with support for Scandinavian characters.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by AnyKind   Belgium  (7 posts)  Bio
Date Reply #2 on Sat 06 Mar 2004 03:29 PM (UTC)
Message
Hmm already read the whole subject ...
but my problem isn't characters not showing ... but .po files not used while launching server.

I also tried to compile using cygwin ... there i succeed in using .po files but i had some problem with non standard characters even setting the good compression type and having LANG set to fr_FR (to use the fr_FR.po file).

Next i tried compiling with VC++ 6.0 ... and there ... compilation went fine but i got the same result as precompiled binaries ... no .po file aren't used.

I even tried setting environment variable LANG=fr_FR in windows system settings before copiling ... but that seems to be useless.

I'm really confused with that problem.

If anyone could give me a hint ...

Thx
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #3 on Sun 07 Mar 2004 01:56 AM (UTC)
Message
I'm not an expert on po files, having never used them, but it sounds like Cygwin is heading the way you want it to.

Now, given that the po part works, what is the problem with non-standard characters exactly?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by AnyKind   Belgium  (7 posts)  Bio
Date Reply #4 on Sun 07 Mar 2004 11:36 AM (UTC)
Message
So when using cygwin i've the translated messages working.
I only have to do: "export LANG=fr_FR" before starting pennmush.

The probelm is then that i can't use any accent ...
for example:

if i type: think héhé
pennmush returns me: hh

if i type: @name here=éééé
pennmush returns me: give it what name ?

Some translated messages use accents and are well shown.
So i think it's a kind of non stantard ascii characters stripping. But i don't know how to get rid of that.

Translated message exemple showing properly:
La dernière connection venait de localhost le Thu Mar 04

In option.h i use this:
#define CRYPT_SYSTEM 0
#define MALLOC_PACKAGE 0
#define COMPRESSION_TYPE 4
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #5 on Mon 08 Mar 2004 02:10 AM (UTC)
Message
I have forwarded your problem to the PennMUSH maintainers, however I think there is a 1-line change you can make to allow those characters through. :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #6 on Mon 08 Mar 2004 08:02 PM (UTC)
Message
I have had this response from the PennMUSH developers:

Quote:

Actually, I think this is related to his client's locale. I don't have any such problem, for example, with MUSHclient or tf connecting to M*U*S*H, which is in the en_US locale (and can accept and display accented chars just fine).


I don't think you said which client you are using - perhaps that is the problem?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by AnyKind   Belgium  (7 posts)  Bio
Date Reply #7 on Tue 09 Mar 2004 04:28 PM (UTC)
Message
I had the problem of client when i used Gmud ... i have Zmud which seems to be okay ... as it works normaly with precompiled version of pennmush (where i can't use .po files).
I also tried with mushclient today ... and i've still the same problem.

The only things that doesn't work are special char (é,à,è,ù,...) i send to the mush. The ones already set somewhere (like with .po files) are well shown.

So to be sure of hat i'm saying i tried running two pennmush at the same time ... the one on port 4201 using precompiled binaries without translation ... and the orther on port 4202 compiled with cygwin and with translations.

Using Mushclient with exactly the same settings for both but the port of connection i got this:

1) Precompiled binaries:
me ->@desc here=this room could perhaps use éé characters
mush ->testroom/DESCRIBE - Set.
me ->look
mush ->testroom(#35Rn)
mush ->this room could perhaps use éé characters

2) Cygwin compiled with translation:
me ->@desc here=this room could perhaps use éé characters
mush->testroom/DESCRIBE - OK..
me->look
mush->testroom(#7Rn)
mush->this room could perhaps use characters

With this test i'm absolutely sure my client isn't the cause. And so i think this could be some compilation and/or run option.
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #8 on Tue 09 Mar 2004 09:40 PM (UTC)
Message
Try this:

In bsd.c at line 3533 in my version (1.7.6 p14), in function process_input_helper are these line:


   } else if (p < pend && isprint(*q)) {
      *p++ = *q;


This is testing that only printable characters end up in the command buffer.

However this seems unnecessarily restrictive to me. It seems to be ruling out characters with the 8-bit set, and the test for IAC (0xFF) has already been done earlier.

I suggest a change to:


    } else if (p < pend && *q >= ' ' ) {
      *p++ = *q;


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by AnyKind   Belgium  (7 posts)  Bio
Date Reply #9 on Wed 10 Mar 2004 04:16 PM (UTC)
Message
Yes ... you did it :)
Now everthing seems to work fine.

Thank you a lot for your help.

Top

Posted by Sen   (1 post)  Bio
Date Reply #10 on Tue 07 Jun 2005 08:12 PM (UTC)
Message
the isprint() function depends on the C implementation, and so on the platform. I tested it on a GNU/Linux with GlibC and it worked fine, but on a FreeBSD system, isprint didn't accept accents as printable characters...

Top

Posted by Eyerouge   (1 post)  Bio
Date Reply #11 on Thu 03 Apr 2008 03:55 PM (UTC)
Message
I just wanted to confirm that Nicks solution using:

"
} else if (p < pend && *q >= ' ' ) {
*p++ = *q;

"

worked perfect, at least for me. It helped me to finally get PennMush to receive/accept swedish characters like åäö when I sent them from my client (KildClient).

I'm using pennmush-1.8.3p6, compiled by myself, on Ubuntu Gutsy (linux) and all is well. =)


Thanks for the fix Nick!
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #12 on Fri 04 Apr 2008 08:39 PM (UTC)
Message
Glad it was helpful - the initial post was 4 years ago. :)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


36,600 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.