Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF8 chars in ICU full and Windows #30461

Closed
dothebart opened this issue Nov 13, 2019 · 3 comments
Closed

UTF8 chars in ICU full and Windows #30461

dothebart opened this issue Nov 13, 2019 · 3 comments
Labels
build Issues and PRs related to build files or the CI. windows Issues and PRs related to the Windows platform.

Comments

@dothebart
Copy link

Hi,
compiling ICU-full for windows requires adding /utf-8 to the msvc compiler switches - as discussed here:
refack/GYP3#60

I don't know whether this is the case for icu-small that ships with nodejs. However, the setting can be added to standalone.gypi like this:

        'msvs_settings': {
          'VCCLCompilerTool': {
            'MinimalRebuild': 'false',
            'BufferSecurityCheck': 'true',
            'EnableFunctionLevelLinking': 'true',
            'RuntimeTypeInfo': 'false',
            'WarningLevel': '3',
            'WarnAsError': 'true',
            'Detect64BitPortabilityProblems': 'false',
            'conditions': [
              ['use_clcache_mode=="true"', {
                'DebugInformationFormat': '1',
              }, {
                'DebugInformationFormat': '3',
              }],
              [ 'msvs_multi_core_compile', {
                'AdditionalOptions': ['/MP', '/utf-8'], <------------------- here
              }],
              ['component=="shared_library"', {
                'ExceptionHandling': '1',  # /EHsc
              }, {
                'ExceptionHandling': '0',
              }],
            ],

Maybe you want to adjust this in your gyp files.

@addaleax addaleax added build Issues and PRs related to build files or the CI. windows Issues and PRs related to the Windows platform. labels Nov 18, 2019
@addaleax
Copy link
Member

@nodejs/platform-windows

@pd4d10
Copy link
Contributor

pd4d10 commented Dec 5, 2019

Should have been fixed in #30492

@jasnell
Copy link
Member

jasnell commented Jun 25, 2020

Believe this is fixed now

@jasnell jasnell closed this as completed Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

4 participants