| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent aac4af2 commit b1ef638
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4191,6 +4191,14 @@ void Init(int* argc, | |||
| 4191 | 4191 | DispatchDebugMessagesAsyncCallback)); | |
| 4192 | 4192 | uv_unref(reinterpret_cast<uv_handle_t*>(&dispatch_debug_messages_async)); | |
| 4193 | 4193 | ||
| 4194 | + #if defined(NODE_HAVE_I18N_SUPPORT) | ||
| 4195 | + // Set the ICU casing flag early | ||
| 4196 | + // so the user can disable a flag --foo at run-time by passing | ||
| 4197 | + // --no_foo from the command line. | ||
| 4198 | + const char icu_case_mapping[] = "--icu_case_mapping"; | ||
| 4199 | + V8::SetFlagsFromString(icu_case_mapping, sizeof(icu_case_mapping) - 1); | ||
| 4200 | + #endif | ||
| 4201 | + | ||
| 4194 | 4202 | #if defined(NODE_V8_OPTIONS) | |
| 4195 | 4203 | // Should come before the call to V8::SetFlagsFromCommandLine() | |
| 4196 | 4204 | // so the user can disable a flag --foo at run-time by passing | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,6 +50,11 @@ if (!common.hasIntl) { | |||
| 50 | 50 | return; | |
| 51 | 51 | } | |
| 52 | 52 | ||
| 53 | + // Check casing | ||
| 54 | + { | ||
| 55 | + assert.strictEqual('I'.toLocaleLowerCase('tr'), 'ı'); | ||
| 56 | + } | ||
| 57 | + | ||
| 53 | 58 | // Check with toLocaleString | |
| 54 | 59 | { | |
| 55 | 60 | const localeString = dtf.format(date0); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments