Hi Clytie,

Le 16 déc. 06 à 12:30, Clytie Siddall a écrit :

Hi everyone :)

However, I got the following error:
___
Pearl:~ test$ /Users/test/OpenOffice.org\ 2.1.app/Contents/MacOS/ program/testtool
I18N: Operating system doesn't support locale ""

[...cut...]

Fatal exception: Signal 10

Maybe the reason is a problem concerning Java ...


Please turn on Enable Crash Reporting and
Automatic Display of Crashlogs in the Console application
/Users/test/OpenOffice.org 2.1.app/Contents/MacOS/program/testtool: line 236: 4199 Abort trap "$sd_prog/$sd_binary" "$@"
Pearl:~ test$
___



Just a guess, but this could be an end of lines problem ... (BTW, did you download the script using Safari, or whorse, Windows ?)

Can you please try

1) Write in a term ( in the directory containing my_script.sh ) :

LANG=C ./my_script.sh   ( + Return )

And let us know ?

If it still does not work :

2) create a file named : dos2unix and write the following content inside :

""""""""""""""""" content starts next line """""""""""""""""
#!/usr/bin/perl -pi

s/\r\n/\n/

""""""""""""""content finished the line above """""""""


Important : #! must be the two first characters of the file (no space before! )

Then make it executable :

chmod ug+x dos2unix

Apply the changes to your script replacing CR LF ( Dos end of lines) with LF ( Unix end of lines) only ) :

dos2unix my_script.sh

( I don't know the exact name of yor script )

...and simply retry.

I did everything it said in Uwe's doc, up to and including running the first test. This was the first test.

AFAIK, there isn't a UTF8 Vietnamese locale for Mac OSX. (The only Vietnamese locales in the system are legacy locales, pre-UTF8.) If anyone hears of one, or knows where I could find one, please tell me!

Meanwhile, I have set:
___
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8


I'd suggest  :

LANG=C

So another try could be :

LANG=C ./my_script.sh   ( + Return )

export LCTYPE=en_US.UTF-8
export LANGUAGE=vi
___

in xterm_script and xterm_script.sh . Do I need to do something else?


All variable concerning locale should be read at login : /etc/ profile is IMHO the best place for that. Next xterm launuch, it shold be ok.


Thanks for any help you can offer with this. It's taken me all day to get this far, and now I haven't got anywhere.


Else, sorry, I don't see ..


Eric Bachard

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

Reply via email to