For now I am able to fix it by following code:

#+BEGIN_SRC
Locale current.  "a Locale(en)"
Latin2Environment class compile: 'fileNameConverterClass

 ^ISO88592TextConverter'.
Locale switchToID: (LocaleID isoLanguage: 'cs').
LanguageEnvironment clearDefault.
LanguageEnvironment defaultFileNameConverter. "an ISO88592TextConverter"
#+END_SRC

It is not perfect, directories with Czech characters is not possible to
browse. But I do not mind for now. It is anyway strange, because my
operating system environment is cs_CZ.UTF-8. And files are encoded in UTF-8.
But FileDirectory>>primLookupEntryIn:index: returns file names in a one byte
encoding. It is not valid Latin1 or Latin2.

If anyone knows better solution, please let me know.
Thanks in advance.
Juraj

On Wed, Mar 23, 2011 at 2:10 PM, Juraj Kubelka <[email protected]>wrote:

> Hi,
>
> If I try to execute:
>
> (FileDirectory on: '/home/jura') directoryNames
>
> it says "Invalid utf8 input detected"
> (UTF8TextConverter>>errorMalformedInput), because of a directory named
> 'Veřejné' ('ř' character is the wrong one). In the file system it is the
> right. FileDirectory>>primLookupEntryIn:index: returns a wrong ByteString
> ('Ve?ejné').
>
> It was tested on Pharo 1.1.1 and Moose 4.3 where I am not able to use a
> Moose Panel tool because of the problem.
>
> Am I able to solve this problem somehow? Set-up something...
>
> Thank you in advance,
> Juraj
>

Reply via email to