diff options
-rwxr-xr-x | desktop/scripts/soffice.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh index d34f1c38298c..d08f52a6edca 100755 --- a/desktop/scripts/soffice.sh +++ b/desktop/scripts/soffice.sh @@ -17,6 +17,11 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # +# use POSIX locale for well-defined tool output +LO_SAVE_LC_ALL=$LC_ALL +LC_ALL=C +export LC_ALL + # # STAR_PROFILE_LOCKING_DISABLED=1 # export STAR_PROFILE_LOCKING_DISABLED @@ -138,6 +143,9 @@ AIX) ;; esac +# restore locale setting +LC_ALL="$LO_SAVE_LC_ALL" + # run soffice.bin directly when you want to get the backtrace if [ -n "$GDBTRACECHECK" ] ; then exec $GDBTRACECHECK "$sd_prog/soffice.bin" "$@" |