Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Windows: Always set codepage explicitely #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Windows: Always set codepage explicitely #143

wants to merge 1 commit into from

Conversation

r0b5t4
Copy link

@r0b5t4 r0b5t4 commented Jul 7, 2016

By default, use codepage 1252 explicitely as default in manifest.json.
Always put the explicit codepage info into the installer. When using
non-ANSI strings in manifest.json, it is needed to adjust the codepage
accordingly.

FIXES=APPTOOLS-338

if (json.xwalk_windows_codepage) {
this._windowsCodepage = json.xwalk_windows_codepage;
} else {
this._windowsCodepage = "1252";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a comment, describing what '1252' actually means

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or even have a const variable with descriptive name?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we not just demand the use of UTF-16? isn't that not already standardized in JSON as it is JS after all?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kenchris because Windows (WiX) does not support it for strings that are displayed in the installer UI.

@pozdnyakov
Copy link
Contributor

lgtm with comment

By default, use codepage 1252 explicitely as default in manifest.json.
Always put the explicit codepage info into the installer. When using
non-ANSI strings in manifest.json, it is needed to adjust the codepage
accordingly.

BUG=APPTOOLS-338
* When using ISO 8859-1 unsupported characters in the manifest,
* the codepage needs to be adjusted accordingly.
*/
Manifest.WINDOWS_DEFAULT_CODEPAGE = "1252";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kenchris because Windows (WiX) does not support it for strings that are displayed in the installer UI.

You have "lang" so if "lang": "cn" you can convert UTF-16 to the codepage required for CN. That would be the proper fix

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lang is part of the manifest spec @anssik

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants