Re: [OOo-Hebrew] Hebrew encoding in Openoffice 2.2 from OOo.org.il

Micha Silver <[email protected]> Sun, 28 Oct 2007 22:33:52 +0200
Newsgroups gmane.comp.openoffice.hebrew
Message-ID <[email protected]>
Hi Alan:

Many thanks! I think I saw that OO_LOCALE business before, but it 
slipped my mind.


About Yonatan's suggestion to set that env var by default, It might be 
worthwhile to check the current LANG value and if it's he_IL.utf8 then 
set OO_LOCALE also to the same. i.e. (in /usr/bin/openoffice2.2):


if [ "$LANG" == "he_IL.utf8" ]; then
      export OO_LOCALE=he_IL.utf8
      echo "OO_LOCALE set to $OO_LOCALE"
fi

On the other hand, on my system (FC6), I see that the Hebrew interface 
users get their locale settings to "he_IL.UTF-8". Not the same string as 
"he_IL.utf8" ...

And I hit another problem. AFter making the above change, I saw that 
only root could read hebrew file names correctly. With regular users, 
the env variable didn't "catch". I thought it was some selinux 
weirdness, so I ended up disabling selinux, then the setting worked fine.
Before disabling selinux I experimented with some semanage tricks, but 
that didn't do it. I also tried 'setenforce 0', but no success. If 
anyone with a better knowledge of selinux wants the details, let me know.

Cheers,
Micha

Alan Yaniger wrote:

> Hi Yonatan,
>
>
> I'm not sure.
>
>
> If you don't set OO_LOCALE, OOo uses the locale settings of the 
> environment it runs in.
>
> If you set OO_LOCALE to "he_IL.utf8", while you system locale is 
> "en_US", for example, the startup does an "export LANG=he_IL.utf8" 
> when you start up OOo, and then an "export LANG=en_US" when OOo exits.
>
>
> Perhaps people who use an "en_US" system locale might have good 
> reasons to want to leave it that way for the OOo process. Or maybe, 
> it's irrelevant. I don't know.
>
>
> Alan
>
>
> Jonathan Ben Avraham wrote:
>
>> Hi Alan,
>> Maybe export OO_LOCALE=he_ILutf8 should be the default?
>>
>>    - yba
>>
>>
>> On Sun, 28 Oct 2007, Alan Yaniger wrote:
>>
>>> Date: Sun, 28 Oct 2007 08:28:20 +0200
>>> From: Alan Yaniger <[email protected]>
>>> To: Micha Silver <[email protected]>
>>> Cc: [email protected]
>>> Subject: Re: [OOo-Hebrew] Hebrew encoding in Openoffice 2.2 from 
>>> OOo.org.il
>>>
>>> Hi Micha,
>>>
>>> In Tkos 2.2 OOo, you can read files with names in UTF-8 encoding. 
>>> Set the OO_LOCALE environment variable to "he_ILutf8" and then start 
>>> OOo (in a process which uses that environment).
>>>
>>> See paragraph 3.3 at:
>>>
>>> http://openoffice.org.il/forum/viewtopic.php?t=373&highlight=oolocale
>>>
>>> If you want to duplicate the behavior on other versions of OOo, take 
>>> a look at the "soffice" startup script, and modify your soffice 
>>> script accordingly.
>>>
>>> Alan
>>>
>>> Micha Silver wrote:
>>>> I've just noticed a problem with the version 2.2 file dialogs on a 
>>>> Linux machine. It seems that the File->Open and File->Save (as well 
>>>> as the templates) dialogs expect files and directories encoded in 
>>>> Windows-1255. So directories created with konqueror, or on the CLI 
>>>> which all use UTF-8 today, appear in the Openoffice.org.il dialogs 
>>>> as gibberish. And files created by Openoffice.org.il appear as 
>>>> question marks in any other interface.
>>>>
>>>>
>>>> The Fedora supplied rpms didn't show this behavior.
>>>>
>>>>
>>>> Is this by design? Is there a work-around to get OOo.org.il dialogs 
>>>> to use UTF-8?
>>>>
>>>> Thanks,
>>>>
>>>> Micha
>>>>
>>>
>>> -- 
>>> Hebrew OpenOffice Mailing List [email protected]
>>> To unsubscribe see: http://openoffice.org.il/mailman/listinfo/hebrew
>>>
>>
>
>
>
>
> This mail was sent via Kinneret Mail-SeCure System.
>
>

--
Hebrew OpenOffice Mailing List [email protected]
To unsubscribe see: http://openoffice.org.il/mailman/listinfo/hebrew