* Bug 16159 fixed: now OSX locale detection works on Mojave 69/21069/3
St├ęphane Mottelet [Mon, 19 Aug 2019 12:00:04 +0000 (14:00 +0200)]
http://bugzilla.scilab.org/show_bug.cgi?id=16159

Change-Id: I0a49b134921c787f061d857f6f4d96c8fc5da915

scilab/bin/scilab

index 978f712..2c002dd 100755 (executable)
@@ -1113,7 +1113,7 @@ do_help()
 # under MacOS X LANG is not set when launching Scilab from its icon 
 if test "$OS" = "Darwin"; then
     if test -z "$LANG"; then
-        export LANG=`defaults read -g AppleLocale`.UTF-8
+        export LANG=`osascript -e "return user locale of (get system info)"`.UTF-8
     fi
 fi