In Windows with Japanese language setting, Inkscape 1.3.2 freezes when importing a PDF
Summary:
- When importing a PDF in Inkscape 1.3.2, it freezes.
- This bug occurred only on Windows with the Japanese language setting.
- This language setting is not for Inkscape UI; it is for the Windows OS.
Steps to reproduce:
- Set the language settings of Windows to Japanese
- Open Inkscape
- Drag & drop a PDF to Inkscape
- I used the attached PDF test.pdf.
- Click the OK button of the dialog
- At this time, Inkscape freezes
What happened?
- To investigate the cause, I built Inkscape and did some experiments in my environment.
- As a result, I found that the function
parserIntRangeused here freezes. - However, I could not determine the cause of the bug and why it depends on Windows's language settings.
What should have happened?
- The function
parserIntRangeshould immediately return the appropriate value.- In the case of the attached PDF, the value would be
std::set<unsigned int>({1}). - In fact, when I hard-coded to that value, Inkscape worked fine.
- In the case of the attached PDF, the value would be
Version info
Inkscape 1.3.2 (091e20e, 2023-11-25, custom)
GLib version: 2.78.1
GTK version: 3.24.39
glibmm version: 2.66.6
gtkmm version: 3.24.8
libxml2 version: 2.11.5
libxslt version: 1.1.38
Cairo version: 1.18.0
Pango version: 1.50.14
HarfBuzz version: 8.2.2
OS version: Windows 11 23H2