Bob Jamison wrote:
bulia byak wrote:
This is probably unrelated, but I am getting a segfault on nr-type-w32.cpp
Hi Bob, this is now fixed, fonts work again on win32 at least as they used to (plus with styles sorted in the list). However when I tried to make it correctly display Cyrillic font names, I found that g_locale_to_utf8() does not work (even though g_locale returns the correct locale, CP1251). The error returned by the conversion function says "Error during conversion: no such file or directory" (code 2), which suggests that it requires some external module or table which is not included with your GTK or Glib files. Could you please check this, and add anything necessary for conversion functions to work?
I haven't investigated the g_locale_to_utf8 issue...
However one way to achieve that on Win32 machines is to convert UTF-8 to UTF-16 and then call WidecharToMultibyte with CP_ACP as the codepage param. So if the other way is problematic we'll at least have a work-around that can be used.