Thanks Francois.  I don;t think that's the problem though.  If I use the LC 
shell command to execute the locale command and put it's output into a file, 
the contents of the file are correct.  BUt then if I open the file in LC and 
put the contents into a field, it's garbled again.

I wonder if there are some strange hidden characters in the output that are 
confusing LC? 

Pete Haworth

On Mar 1, 2011, at 1:36 PM, François Chaplais wrote:

> the LC shell command launches a shell which not the same as the one in 
> Terminal. I am unfortunately not a Unix guru, but I know this has 
> consequences on some "default" options, even if you use the same variant of 
> the shell (BASH, I believe).
> Le 1 mars 2011 à 22:00, Peter Haworth a écrit :
> 
>> Hoping someone might come up with some help.  To recap, if I execute the 
>> command
>> 
>> locale -k LC_NUMERIC
>> 
>> ...from Terminal on my Mac, the output is
>> 
>> decimal_point="."
>> thousands_sep=","
>> grouping="3;3"
>> 
>> However, if I use the LC Shell command to issue the same command and put the 
>> output into a field, it gives me:
>> 
>> decimal_point="."
>> thousands_sep=
>> grouping="0"
>> 
>> The thousands_sep and grouping lines don't show the correct info.
>> 
>> I have also tried using the shell command to issue "locale -k LC_NUMERIC > 
>> myFile.txt", then accessed myFile.txt with the put url command and used 
>> open/read to get the contents, but still the same result. The file looks 
>> fine when opened in TextEdit.  I can even copy and paste from TextEdit to 
>> the LC field and it looks fine.
>> 
>> I'm really hoping not, but this is feeling like a bug.
>> 
>> Any thoughts?
>> 
>> Pete Haworth
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to