Displaying 1 result from an estimated 1 matches for "rb_get_kcode".
2008 Jun 18
2
[ win32utils-Bugs-20722 ] Windows::Error.get_last_error only returns the first character (PATCH)
...y: John Whitley (whitley)
Date: 2008-06-18 16:22
Message:
Actually, I rescind my patch above. The deeper problem
seems to lie in win32-api, api.c, this code:
// The order of ''A'' and ''W'' is reversed if $KCODE is set
to ''UTF8''.
if(!strcmp(rb_get_kcode(), "UTF8")){
first = "W";
second = "A";
}
W functions accept/return UTF16 not UTF8, which breaks the
rest of the win32-* modules hard, as the bug above exhibits.
For example, Win32::Events are now created by passing UTF8
Ruby string data to an interfa...