Bugzilla – Bug 6113
Text problems in russian and turkish client installer for windows
Last modified: 2019-11-28 16:24:50
You need to
before you can comment on or make changes to this bug.
Created an attachment (id=764) [details]
Screenshot showing the ThinLinc installer for windows in russian
When installing the ThinLinc client for windows when having russian set as the
language causes the text in the installer to be all messed up.
The issue seems to be that Windows no longer sets the correct code page when
you switch languages. I guess it assumes all applications have switched to
using the Unicode API.
If we manually reconfigure the system to use the Russian code page, then
everything works fine.
It seems NSIS has some clue about this though. If you tell it to show a
language selection dialog, then it will only show the languages that will
actually work in the current code page. You can force it to show everything
using "!define MUI_LANGDLL_ALLLANGUAGES" though.
This dialog doesn't show Russian with the default Windows code page, and
conversely doesn't show Swedish with the Russian code page.
Documentation suggests that NSIS 3 handles this better.
Also note that Turkish also uses a different code page and we might not be
showing that correctly either.
I can confirm that Turkish is also broken, not just as badly as most characters
are shared with 8859-1.
We've decided to remove these languages from the installer for now. In the
future we'll have to upgrade NSIS, or switch to something else to resolve this.
See bug 7447.
For now the users will have to make do with English. Fortunately it's just the
installer that's affected. The client itself is still translated.
I had to make sure the Russian translated strings weren't included in the .nsh
file or they might be used for other languages for some odd reason.
Crap. I forgot to also update the customizer.
Works well now. Tested a few languages on Windows 10. Is translated when
expected and didn't see any obvious errors.
Verified that running with system language as Russian or Turkish, the installer
is now translated to English. Also verified that using Portugese as system
language the installer is still translated to Portugese as it should be.
Tested on nightly build on Windows 10.