"MacArthur, Ian (SELEX GALILEO, UK)" <[email protected]> wrote: > >> when using Fl_File_Chooser on a system with a non-utf8 locale e.g. >> from test/editor, filenames with special chars are not displayed >> correctly. >> Shouldn't there be a call to fl_locale_to_utf8() somewhere to convert >> filenames to utf8? > > Perhaps - but inter-mixing utf8 and non-utf8 can be problematic, and > what to do can be non-obvious.
Yes, it can be a can of worms ... > > I'm sure we'd accept a patch, if you have one, though it would have to > work right (or at least reasonably) on all platforms, and determinng the > current locale can be non-trivial in some configurations. I don't have a patch and as you said it is not obvious what would be the right thing to do. Probabely converting from locale charset to UTF8 for display in Fl_File_Chooser, but returning the original string unchanged to the application. > > The "easy" option is to switch everything to utf8, of course, and stop > using locales which really just make things harder and less > compatible...! Fair enough. As there is even a recommendation in http://fltk.org/doc-1.3/unicode.html I think I will just assume an UTF8 locale in my applications too. Thanks, Johannes _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

