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 ➜ A Rough hack for 8bit input support on Cygwin or Win32

A Rough hack for 8bit input support on Cygwin or Win32

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


Posted by In-Ho Yi   (1 post)  Bio
Date Mon 15 Apr 2002 12:05 PM (UTC)
Message
on line 3460 of bsd.c, change as follows :

} else if (p < pend /*&& isprint(*q)*/) { // for rough 8bit support
*p++ = *q;
}
}

This can support whole 8bit chars. Including Asian characters(which is the reason why I have done this)

Since Cygwin doesn't support locale function properly, it has only one supported locale for LC_CTYPE function such as isprint(c), isalnum(c). The only supported locale is "C" which is for English only. On the Cygwin document, they said that if MB_CAPABLE is defined, they support 3 extra one. C-JIS, C-EUCJP and C-... (sorry forget :-() I tried to imitate so that it looks like Japanese one, but I failed. So, I just breaked down 8-bit stripping part.

I hope I can help other people to use 8bit input on Win32 systems. Also, remember that this is not a secure, perfect way!!
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.


8,447 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.