From: Grzegorz A. H. <gr...@ti...> - 2005-08-20 08:06:38
|
On 2005-08-20, ar...@in... wrote: > I use Allegro on UTF8 format( set_uformat( U_UTF8 ); ) with > MacOSX 10.3, Glyph Keeper and Adime library also. These are > almost nice work UTF8,which contain CJK and other multi-bytes > characters drawing. > > However,ONLY file selecter dialog at Allegro GUI, some parts of > filename and filepath are indicate '?' strings or broken. ( ex: > "directory/???????/anothername.txt" ) These parts contain UTF8 > CJK charactors. Allegro's GUI uses by default the built-in font which doesn't contain much more than the latin1 range of characters. You should try changing the global font pointer to use some other font. If this doesn't help, Allegro could be at fault reading the filesystem. Since you are using U_UTF8, Allegro expects that all filename strings (even those coming from the OS) are UTF8 encoded. Maybe on MacOSX this is not the case? > BTW, I don't know this trouble appear on other platforms. It would be best if you could provide a small example using for_each_file_ex() reading a directory where you saved a filename with CJK characters. Then pack the source and the directory structure and put it on the web for somebody to debug it (unless you want to debug it yourself, of course). |