Zitat von Graeme Geldenhuys <[EMAIL PROTECTED]>: > 2008/6/30 Mattias Gaertner <[EMAIL PROTECTED]>: > >> Even Linux's terminal didn't display the russian directory correcty. > >> A whole bunch of '?????????' instead. fpGUI worked fine! ;-) > > > > How did you change to russian locale? > > By setting the LANG environment variable. > export LANG=ru.UTF-8
That's not a valid lang value. export LANG=ru_RU.UTF-8 But the important part is the UTF-8. If you don't change this, then the terminal will still use UTF-8 and the fonts will not change. If it shows '??' then the filename is not a valid UTF-8 string or your terminal shows unsupported characters as '??'. For example xterm shows rectangles for valid but unsupported characters. > > Linux is not the problem here. Windows is. You must use the W functions. > > We do use the W functions in the GDI backend. As show in Felipe's post. > > if UnicodeEnabledOS then > ... // W functions > else > .... // plain functions And the same must be done for filenames. Mattias _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal