To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=67438





------- Additional comments from [EMAIL PROTECTED] Wed Mar  7 00:58:21 +0000 
2007 -------
I've found the source of the bug. It is not related to the file system, but to
the currency settings of the machine!

First, I've noticed that when running

/Applications/OpenOffice.org\ 2.1.app/Contents/MacOS/program/soffice blah_*.odt

where my filename is blah_é.odt, I get the following error message:

I18N: Operating system doesn't support locale ""

I don't know why OpenOffice hides this message when it is run via "open" or from
the Finder, but well... Then I've looked at what happens with "ktrace -di".

 12182 soffice.bin CALL  getattrlist(0xf0100690,0xf00fe9e0,0xf00fe690,0x334,0x4)
 12182 soffice.bin NAMI  "/Users/vinc17/blah_e<C3><8C><C2><81>.odt"
 12182 soffice.bin RET   getattrlist -1 errno 2 No such file or directory
 12182 soffice.bin CALL  access(0x5afaa6c,0)
 12182 soffice.bin NAMI  "/Users/vinc17/blah_e<C3><8C><C2><81>.odt"
 12182 soffice.bin RET   access -1 errno 2 No such file or directory

Summary: OpenOffice thinks that the filename is written in ISO-8859-1 and
converts the byte sequence into UTF-8. This is wrong, since the filename is
already in UTF-8 (the encoding used by HFS+).

Now, why does OpenOffice think the filename is in ISO-8859-1? I don't know, but
this is related to the above error message. A search for this message in the
dump gives:

 12182 soffice.bin NAMI  "/usr/share/locale/[EMAIL PROTECTED]/LC_COLLATE"
 12182 soffice.bin RET   open -1 errno 2 No such file or directory
 12182 soffice.bin CALL  write(0x2,0xf01013a0,0x31)
 12182 soffice.bin GIO   fd 2 wrote 49 bytes
       "I18N: Operating system doesn't support locale ""
       "

though the locale command gives:

prunille:~> locale
LANG="POSIX"
LC_COLLATE="POSIX"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="POSIX"
LC_MONETARY="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_ALL="POSIX/en_US.UTF-8/POSIX/POSIX/POSIX/POSIX"

OpenOffice then tries:

 12182 soffice.bin NAMI  "/usr/share/locale/en_US.UTF-8/LC_COLLATE"

but I think it is already confused.

In my System Preferences (International), I've changed the Euro currency into
the "British Pound Sterling", and now I no longer get the error message and the
file blah_é.odt can be opened.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to