Mercurial > hg > octave-nkf
changeset 16168:8650eec57e9f
Set LC_NUMERIC to "C" locale regardless of user value. (Matlab compatibility and bug #38372)
* libgui/src/octave-adapter/octave-main-thread.cc (run):
Set LC_NUMERIC to "C" locale.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 01 Mar 2013 12:46:56 -0800 |
parents | 22bb3aa9f025 |
children | 0303fda3e929 |
files | libgui/src/octave-adapter/octave-main-thread.cc |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/octave-adapter/octave-main-thread.cc +++ b/libgui/src/octave-adapter/octave-main-thread.cc @@ -40,6 +40,8 @@ octave_main_thread::run () { setlocale (LC_ALL, "en_US.UTF-8"); + // Matlab uses "C" locale for LC_NUMERIC class regardless of local setting + setlocale (LC_NUMERIC, "C"); emit ready ();