Commit 336ab4b
committed
- setlocale(LC_CTYPE, "") returns null when omc is launched via double clicking on OMEdit.app. This results in strdup(null) which leads to omc crash. Just check if setlocale(LC_CTYPE, "") is not null then use it otherwise use the default value.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16694 f25d12d1-65f4-0310-ae8a-bbce733d8d8e1 parent a11f647 commit 336ab4b
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1864 | 1864 | | |
1865 | 1865 | | |
1866 | 1866 | | |
1867 | | - | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
1868 | 1871 | | |
1869 | 1872 | | |
1870 | 1873 | | |
| |||
0 commit comments