Etsushi,

Etsushi Kato wrote:


Great! I'm very pleased that these decomposed UTF8 filename handling. Thanks.


No, thank you. This code is the code that you posted in the following e-mail last August:


http://porting.openoffice.org/servlets/ReadMsg?list=dev&msgId=1467012

The code seemed good to me so Neo/J users have been using it for several months with no bugs reported.


I have one question. What will be the content of the 'locale' variable in the code if I add ja.lproj? I need the string "ja_JP.UTF-8" to enable XIM (Xinput method) to work. If the content of the 'locale' is just "ja", we can't input Japanese characters in X11 version of OOo.


This code iterates through the list of preferred languages that the user has set in the System Preferences application and it will return the first locale for which there is a matching <locale>.lproj directory. If no locale matches, it will return the first locale where the language code matches a <locale>.proj directory.


For example, if my app has the following two directories and I set my preferred language to U.S. English, "en_US" will be returned:

  en_US.lproj
  en.lproj

If I delete the en_US.lproj and run the same test, "en" will be returned.

So, to answer your question, you will most likely only get "ja" since this is the only Japanese language option in the System Preferences application.

What this means for OOo X11 is that you will still need to append a country code and ".UTF8" where required for the X11 window input methods. The benefit of my donated code is to at least the language will accurately reflect what the user has selected in the System Preferences application.

Patrick

--
_________________________________________________________________
Patrick Luby
Planamesa Software
[EMAIL PROTECTED]
http://www.planamesa.com
_________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to