[fpc-pascal] Unicode filenames

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jun 30 09:41:50 CEST 2008


On Mon, 30 Jun 2008 09:04:21 +0200
"Graeme Geldenhuys" <graemeg.lists at gmail.com> wrote:

> 2008/6/30 Vincent Snijders <vsnijders at quicknet.nl>:
> >
> > Even if it doesn't contain Russian locale, you would be able to
> > create such files in the windows explorer to create such file, for
> > example by copy / pasting the file name while renaming it.
> >
> > Then let your fpGui program check for its existence.
> 
> Under Linux I simply change the LANG environment variable and place
> the fpgui_ru.po file in the directory, and it uses the Russian
> language. I use GetText like done in Lazarus. How to I change the
> language locale in Windows, so I can use the Russian translaction of
> fpGUI?

Can you test to create a chinese filename in the explorer. For example:

北方话.txt

Then check if the file exists. This should work independent of the
locale.
With Utf8ToAnsi this can not work on 1-byte locales.


Mattias



More information about the fpc-pascal mailing list