diff --git a/ChangeLog b/ChangeLog index b250d2e3..49067d22 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,9 @@ v0.71.2 16-Jan-2005 When a user logs in, the users locale (guessed value from his characterset) is set. Experimental to see if libc functions will support Chinese characters. + Allowed hi-ascii input characters in the internal fs editor, + the chat input and one general input function. This may have + effects for all users not using us-ascii keyboards. mbfido: Empty *.msg netmails for our own system are dropped with and diff --git a/mbsebbs/chat.c b/mbsebbs/chat.c index 0a44285b..7a8331c4 100644 --- a/mbsebbs/chat.c +++ b/mbsebbs/chat.c @@ -275,10 +275,11 @@ void Chat(char *username, char *channel) break; /* - * Check for a pressed key, if so then process it + * Check for a pressed key, if so then process it. + * Allow hi-ascii for multi-language. */ ch = testkey(exitinfo.iScreenLen -1, curpos + 2); - if (isprint(ch)) { + if (isprint(ch) || (ch > 0x7F)) { alarm_on(); if (curpos < 77) { PUTCHAR(ch); diff --git a/mbsebbs/fsedit.c b/mbsebbs/fsedit.c index bc438869..e239593b 100644 --- a/mbsebbs/fsedit.c +++ b/mbsebbs/fsedit.c @@ -717,9 +717,9 @@ int Fs_Edit() break; default: - if ((ch > 31 && ch < 127) || traduce(&ch) ) { + if ((ch > 31) || traduce(&ch) ) { /* - * Normal printable characters + * Normal printable characters or hi-ascii */ if (Col == strlen(Message[CurRow]) + 1) { /* diff --git a/mbsebbs/input.c b/mbsebbs/input.c index d58708eb..f2328747 100644 --- a/mbsebbs/input.c +++ b/mbsebbs/input.c @@ -341,7 +341,7 @@ void GetstrP(char *sStr, int iMaxLen, int Position) PUTCHAR('\007'); } - if ((ch > 31 && ch < 127) || traduce(&ch)) { + if ((ch > 31) || traduce(&ch)) { if (iPos <= iMaxLen) { iPos++; sprintf(sStr, "%s%c", sStr, ch);