Csound Csound-dev Csound-tekno Search About

[Csnd] Re: 5.08 java and setLocale

Date2008-03-17 22:34
Fromvictor
Subject[Csnd] Re: 5.08 java and setLocale
That is C. I am not sure what the equivalent is in Java. In Python,
this problem occurs only when using GTK and the solution is
similar to the C one.

Victor
----- Original Message ----- 
From: "Jean-Pierre Lemoine" 
To: 
Sent: Monday, March 17, 2008 9:26 PM
Subject: [Csnd] 5.08 java and setLocale


> The following error
> error:  illegal character ., line 309:
> asiglo clip asigl, 2, 31622.764
>                           ^
> was suggested to be corrected by using
>
> setlocale(LC_ALL, "C");
> before the call to Compile()
>
> I have no idea on how to set this from a java host using the csound api. I 
> have tried  " Locale.setDefault( Locale.ENGLISH );"  without any success.
> Thanks for any help, and why is this now required? new parser?
>
> jp
>
>
>
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2008-03-17 23:20
FromJean-Pierre Lemoine
Subject[Csnd] Re: Re: 5.08 java and setLocale
Thanks Victor for helping.
I have tried this in Java    Locale.setDefault( new Locale( "LC_ALL", 
"C" ) );
No effect.
This is a nasty regression from 5.07.
The csd file generated by the Java program is working fine when using 
csound from a command prompt, but not when using the csound api.
Why this "behaviour" in 5.08?

jp

victor a écrit :
> That is C. I am not sure what the equivalent is in Java. In Python,
> this problem occurs only when using GTK and the solution is
> similar to the C one.
>
> Victor
> ----- Original Message ----- From: "Jean-Pierre Lemoine" 
> 
> To: 
> Sent: Monday, March 17, 2008 9:26 PM
> Subject: [Csnd] 5.08 java and setLocale
>
>
>> The following error
>> error:  illegal character ., line 309:
>> asiglo clip asigl, 2, 31622.764
>>                           ^
>> was suggested to be corrected by using
>>
>> setlocale(LC_ALL, "C");
>> before the call to Compile()
>>
>> I have no idea on how to set this from a java host using the csound 
>> api. I have tried  " Locale.setDefault( Locale.ENGLISH );"  without 
>> any success.
>> Thanks for any help, and why is this now required? new parser?
>>
>> jp
>>
>>
>>
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe csound" 
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
> "unsubscribe csound"
>
>
>