Menu

#7 Incorrect encoding conversion

open
nobody
None
5
2010-06-23
2010-06-23
No

Hi, the org_gnu_readline_Readline.c always explicitly converts all text to/from ucs2 when passing data to/from readline. As I understand, readline interchages text accordincly to the current locale, but not in ucs2.

As the result, text typed in Cyrillic comes broken to Java.

In my case, on Linux utf8 is already used as the current locale, so I just changed lines like:

ucs2utf(input);

to
strcpy(buffer, input);

to fix this.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.