2017-02-20 20:22:10 |
su_v |
description |
Inkscape trunk crashes on launch on Windows if the current environment defines LANG to any (valid) locale but C or POSIX.
Steps to reproduce:
In Command Prompt window, change to inkscape's install folder:
C:\path\to\inkscape>set LANG=C
C:\path\to\inkscape>inkscape
--> inkscape launches as expected
C:\path\to\inkscape>set LANG=POSIX
C:\path\to\inkscape>inkscape
--> inkscape launches as expected
C:\path\to\inkscape>set LANG=en_US
C:\path\to\inkscape>inkscape
--> inkscape crashes on launch
C:\path\to\inkscape>set LANG=de_CH
C:\path\to\inkscape>inkscape
--> inkscape crashes on launch
Notes:
* The crash is for example exposed if inkscape is launched with GUI (e.g. for verbs) via python-based extensions which use a subclass of inkex.Effect() (bug #1662531 , bug #1663697, bug #1663585), because inkex.localize() sets LANG in os.environ on Windows (bug #1666108).
* Not reproduced with Inkscape 0.91, 0.92.0, 0.92.1 (32bit, 64bit, installed from 7z to custom location): no crash on launch, inkscape sets the GUI language according to LANG as defined in the environment.
* Based on earlier bisecting by Alvin Penner, this regression seems to have been exposed with the merge of the doc-rotate branch (lp:inkscape r15444):
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/15444
Reproduced with Inkscape 0.92+devel 15534 on Windows 10 (local build). |
Inkscape trunk crashes on launch on Windows if the current environment defines LANG to any (valid) locale but C or POSIX.
Steps to reproduce:
In Command Prompt window, change to inkscape's install folder:
C:\path\to\inkscape>set LANG=C
C:\path\to\inkscape>inkscape
--> inkscape launches as expected
C:\path\to\inkscape>set LANG=POSIX
C:\path\to\inkscape>inkscape
--> inkscape launches as expected
C:\path\to\inkscape>set LANG=en_US
C:\path\to\inkscape>inkscape
--> inkscape crashes on launch
C:\path\to\inkscape>set LANG=de_CH
C:\path\to\inkscape>inkscape
--> inkscape crashes on launch
Console message (without gdb):
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Notes:
* The crash is for example exposed if inkscape is launched with GUI (e.g. for verbs) via python-based extensions which use a subclass of inkex.Effect() (bug #1662531 , bug #1663697, bug #1663585), because inkex.localize() sets LANG in os.environ on Windows (bug #1666108).
* Not reproduced with Inkscape 0.91, 0.92.0, 0.92.1 (32bit, 64bit, installed from 7z to custom location): no crash on launch, inkscape sets the GUI language according to LANG as defined in the environment.
* Based on earlier bisecting by Alvin Penner, this regression seems to have been exposed with the merge of the doc-rotate branch (lp:inkscape r15444):
http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/15444
Reproduced with Inkscape 0.92+devel 15534 on Windows 10 (local build). |
|