Re: [Freesurfer] remark regarding tcsh with bad locale

2020-09-01 Thread Douglas N. Greve
Sorry, that's been a problem for a while now. I just added something 
that replaces the commas with decimal points, will be in the next version

On 8/31/2020 9:39 AM, Rovai Antonin wrote:
>  External Email - Use Caution
>
> Hi,
>
> this is not really a question but rather a comment that, hopefully,
> will help those running into the issue I ran into today.
>
> I was using mri_glm-sim with --mczsim 2 option, and got an error saying
> that "2,0 must be 1.3, 2.0 ...".
> The issue is that printf (used in the mri_glm-sim script) refers to the
> LC_NUMERIC locale which, in my unfortunate case, has instructed printf
> %2.1f to replace the dot by a comma.
>
> You can check this by typing locale in a terminal.
> If, like me, you live in an undercivilized part of the world, then you
> may update your locale using e.g.
>
> sudo update-locale LC_NUMERIC=en_US.UTF-8
>
> Log in and out and you'll be back on the right side of the force.
>
> It would be great if a future release of FS could include a locale
> check :-)
>
> Hope this help someone, someday.
>
> Best
>
> AR
>
> Hôpital Erasme - ULB
> Cliniques universitaires de Bruxelles
> Route de Lennik 808 - B - 1070 Bruxelles
> S www.erasme.ulb.ac.be
>
> Disclaimer : http://www.erasme.ulb.ac.be/email-disclaimer
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

[Freesurfer] remark regarding tcsh with bad locale

2020-08-31 Thread Rovai Antonin
External Email - Use Caution

Hi,

this is not really a question but rather a comment that, hopefully,
will help those running into the issue I ran into today.

I was using mri_glm-sim with --mczsim 2 option, and got an error saying
that "2,0 must be 1.3, 2.0 ...".
The issue is that printf (used in the mri_glm-sim script) refers to the
LC_NUMERIC locale which, in my unfortunate case, has instructed printf
%2.1f to replace the dot by a comma.

You can check this by typing locale in a terminal.
If, like me, you live in an undercivilized part of the world, then you
may update your locale using e.g.

sudo update-locale LC_NUMERIC=en_US.UTF-8

Log in and out and you'll be back on the right side of the force.

It would be great if a future release of FS could include a locale
check :-)

Hope this help someone, someday.

Best

AR

Hôpital Erasme - ULB
Cliniques universitaires de Bruxelles
Route de Lennik 808 - B - 1070 Bruxelles
S www.erasme.ulb.ac.be

Disclaimer : http://www.erasme.ulb.ac.be/email-disclaimer

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer