Salut eric :)

On 16/12/2006, at 10:30 PM, eric b wrote:

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

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 ...

Could well be. I do have the latest Java, fresh beans and all.


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 ?)

OmniWeb 5.5 (Mac OSX) ;)

Line-breaks are certainly a possibility with cross-platform file transfer.


Can you please try

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

I can't find this script. Is this the actual script filename, or do you want me to substitute another script's filename?

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

And let us know ?

I tried it on the script for the first test (first.bas) and got:
___
Pearl:/Users/Shared/OOoQA/qatesttool/framework/first clytie$ LANG=C ./ first.bas
./first.bas: line 2: encoding UTF-8  Do not remove or change this line!
___

then lots of "command not found" and fairly long output. Should I have tried it on testool.bin ?


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 """""""""

Yes, but in which file am I changing all the line-breaks? I can do that easily in my text editor (BBEdit), I just need to know which file it is.


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 )

That makes two of us. About which script are we talking?

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.

I have the same settings in /etc/profile . The important thing is that I need UTF8 to display Vietnamese.

Thanks for your help. :)

from Clytie (vi-VN, Vietnamese free-software translation team / nhóm Việt hóa phần mềm tự do)
http://groups-beta.google.com/group/vi-VN


Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to