Skip to content

Commit 6990f84

Browse files
authored
Merge pull request MicrosoftDocs#1613 from MicrosoftDocs/master
12/11 AM Publish
2 parents 9750982 + fa862f9 commit 6990f84

File tree

4 files changed

+34
-24
lines changed

4 files changed

+34
-24
lines changed

docs/build/reference/compiler-options-listed-by-category.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ This article contains a categorical list of compiler options. For an alphabetica
5555
|[/homeparams](homeparams-copy-register-parameters-to-stack.md)|Forces parameters passed in registers to be written to their locations on the stack upon function entry. This compiler option is only for the x64 compilers (native and cross compile).|
5656
|[/hotpatch](hotpatch-create-hotpatchable-image.md)|Creates a hotpatchable image.|
5757
|[/Qfast_transcendentals](qfast-transcendentals-force-fast-transcendentals.md)|Generates fast transcendentals.|
58-
|[QIfist](qifist-suppress-ftol.md)|Deprecated. Suppresses the call of the helper function `_ftol` when a conversion from a floating-point type to an integral type is required. (x86 only)|
58+
|[/QIfist](qifist-suppress-ftol.md)|Deprecated. Suppresses the call of the helper function `_ftol` when a conversion from a floating-point type to an integral type is required. (x86 only)|
5959
|[/Qimprecise_fwaits](qimprecise-fwaits-remove-fwaits-inside-try-blocks.md)|Removes `fwait` commands inside `try` blocks.|
6060
|[/Qpar](qpar-auto-parallelizer.md)|Enables automatic parallelization of loops.|
6161
|[/Qpar-report](qpar-report-auto-parallelizer-reporting-level.md)|Enables reporting levels for automatic parallelization.|
@@ -200,7 +200,7 @@ This article contains a categorical list of compiler options. For an alphabetica
200200
|[/GZ](gz-enable-stack-frame-run-time-error-checking.md)|Deprecated. Enables fast checks. Use [/RTC1](rtc-run-time-error-checks.md) instead.|
201201
|[/H](h-restrict-length-of-external-names.md)|Deprecated. Restricts the length of external (public) names.|
202202
|[/Og](og-global-optimizations.md)|Deprecated. Uses global optimizations.|
203-
|[QIfist](qifist-suppress-ftol.md)|Deprecated. Once used to specify how to convert from a floating-point type to an integral type.|
203+
|[/QIfist](qifist-suppress-ftol.md)|Deprecated. Once used to specify how to convert from a floating-point type to an integral type.|
204204
|[/V](v-version-number.md)|Deprecated. Sets the .obj file version string.|
205205
|[/Wp64](wp64-detect-64-bit-portability-issues.md)|Obsolete. Detects 64-bit portability problems.|
206206
|[/Yd](yd-place-debug-information-in-object-file.md)|Deprecated. Places complete debugging information in all object files. Use [/Zi](z7-zi-zi-debug-information-format.md) instead.|

docs/c-runtime-library/locale-names-languages-and-country-region-strings.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
---
22
title: "Locale Names, Languages, and Country-Region Strings"
3-
ms.date: "08/13/2018"
3+
ms.date: "12/10/2018"
44
f1_keywords: ["c.strings"]
55
helpviewer_keywords: ["country/region strings", "localization, locale", "locales", "setlocale function", "language strings"]
66
ms.assetid: a0e5a0c5-5602-4da0-b65f-de3d6c8530a2
77
---
8-
# Locale Names, Languages, and Country/Region Strings
8+
# UCRT Locale names, Languages, and Country/Region strings
99

10-
The *locale* argument to the `setlocale` and `_create_locale` functions can be set by using the locale names, languages, country/region codes, and code pages that are supported by the Windows NLS API. The *locale* argument takes the following form:
10+
The *locale* argument to the [setlocale, \_wsetlocale](../c-runtime-library/reference/setlocale-wsetlocale.md), [\_create\_locale](../c-runtime-library/reference/create-locale-wcreate-locale.md), and [\_wcreate\_locale](../c-runtime-library/reference/create-locale-wcreate-locale.md) functions can be set by using the locale names, languages, country/region codes, and code pages that are supported by the Windows NLS API. The *locale* argument takes the following form:
1111

12-
> *locale* :: "*locale_name*"
13-
    | "*language*\[\_*country-region*]\[.*code_page*]]"
14-
    | ".*code_page*"
15-
    | "C"
16-
    | ""
17-
    | NULL
12+
> *locale* :: "*locale-name*"<br/>
13+
&nbsp;&nbsp;&nbsp;&nbsp;\| "*language*\[**\_**_country-region_\[__.__*code-page*]]"<br/>
14+
&nbsp;&nbsp;&nbsp;&nbsp;\| "__.__*code-page*"<br/>
15+
&nbsp;&nbsp;&nbsp;&nbsp;\| "C"<br/>
16+
&nbsp;&nbsp;&nbsp;&nbsp;\| ""<br/>
17+
&nbsp;&nbsp;&nbsp;&nbsp;\| NULL
1818

19-
The locale name form is preferred; for example, use `en-US` for English (United States) or `bs-Cyrl-BA` for Bosnian (Cyrillic, Bosnia and Herzegovina). The set of locale names is described in [Locale Names](/windows/desktop/Intl/locale-names). For a list of supported locale names by Windows operating system version, see the **Language tag** column of the table in [Appendix A: Product Behavior](https://msdn.microsoft.com/library/cc233982.aspx) in [MS-LCID]: Windows Language Code Identifier (LCID) Reference. This resource lists the supported language, script, and region parts of the locale names. For information about the supported locale names that have non-default sort orders, see the **Locale name** column in [Sort Order Identifiers](/windows/desktop/Intl/sort-order-identifiers). Under Windows 10 or later, locale names that correspond to valid BCP-47 language tags are allowed. For example, `jp-US` is a valid BCP-47 tag, but it is effectively only `US` for locale functionality.
19+
The *locale-name* form is a short, IETF-standardized string; for example, `en-US` for English (United States) or `bs-Cyrl-BA` for Bosnian (Cyrillic, Bosnia and Herzegovina). These forms are preferred. For a list of supported locale names by Windows operating system version, see the **Language tag** column of the table in [Appendix A: Product Behavior](https://msdn.microsoft.com/library/cc233982.aspx) in [MS-LCID]: Windows Language Code Identifier (LCID) Reference. This resource lists the supported language, script, and region parts of the locale names. For information about the supported locale names that have non-default sort orders, see the **Locale name** column in [Sort Order Identifiers](/windows/desktop/Intl/sort-order-identifiers). Under Windows 10 or later, locale names that correspond to valid [BCP-47](https://tools.ietf.org/html/bcp47) language tags are allowed. For example, `jp-US` is a valid BCP-47 tag, but it is effectively only `US` for locale functionality.
2020

21-
The *language*[*_country_region*[.*code_page*]] form is stored in the locale setting for a category when a language string, or language string and country/region string, is used to create the locale. The set of supported language strings is described in [Language Strings](../c-runtime-library/language-strings.md), and the list of supported country/region strings is listed in [Country/Region Strings](../c-runtime-library/country-region-strings.md). If the specified language is not associated with the specified country/region, the default language for the specified country/region is stored in the locale setting. We do not recommend this form for locale strings embedded in code or serialized to storage, because these strings are more likely to be changed by an operating system update than the locale name form.
21+
The *language*\[**\_**_country-region_\[__.__*code-page*]] form is stored in the locale setting for a category when a language string, or language string and country or region string, is used to create the locale. The set of supported language strings is described in [Language Strings](../c-runtime-library/language-strings.md), and the list of supported country and region strings is listed in [Country/Region Strings](../c-runtime-library/country-region-strings.md). If the specified language is not associated with the specified country or region, the default language for the specified country or region is stored in the locale setting. We do not recommend this form for locale strings embedded in code or serialized to storage, because these strings are more likely to be changed by an operating system update than the locale name form.
2222

23-
The code page is the ANSI/OEM code page that's associated with the locale. The code page is determined for you when you specify a locale by language or by language and country/region alone. The special value `.ACP` specifies the ANSI code page for the country/region. The special value `.OCP` specifies the OEM code page for the country/region. For example, if you specify `"Greek_Greece.ACP"` as the locale, the locale is stored as `Greek_Greece.1253` (the ANSI code page for Greek), and if you specify `"Greek_Greece.OCP"` as the locale, it is stored as `Greek_Greece.737` (the OEM code page for Greek). For more information about code pages, see [Code Pages](../c-runtime-library/code-pages.md). For a list of supported code pages on Windows, see [Code Page Identifiers](/windows/desktop/Intl/code-page-identifiers).
23+
The *code-page* is the ANSI/OEM code page that's associated with the locale. The code page is determined for you when you specify a locale by language or by language and country/region alone. The special value `.ACP` specifies the ANSI code page for the country/region. The special value `.OCP` specifies the OEM code page for the country/region. For example, if you specify `"Greek_Greece.ACP"` as the locale, the locale is stored as `Greek_Greece.1253` (the ANSI code page for Greek), and if you specify `"Greek_Greece.OCP"` as the locale, it is stored as `Greek_Greece.737` (the OEM code page for Greek). For more information about code pages, see [Code Pages](../c-runtime-library/code-pages.md). For a list of supported code pages on Windows, see [Code Page Identifiers](/windows/desktop/Intl/code-page-identifiers).
2424

2525
If you use only the code page to specify the locale, the user's default language and country/region as reported by [GetUserDefaultLocaleName](/windows/desktop/api/winnls/nf-winnls-getuserdefaultlocalename) are used. For example, if you specify `".1254"` (ANSI Turkish) as the locale for a user that's configured for English (United States), the locale that's stored is `English_United States.1254`. We do not recommend this form, because it could lead to inconsistent behavior.
2626

2727
A *locale* argument value of `C` specifies the minimal ANSI conforming environment for C translation. The `C` locale assumes that every **char** data type is 1 byte and its value is always less than 256. If *locale* points to an empty string, the locale is the implementation-defined native environment.
2828

2929
You can specify all of the locale categories at the same time for the `setlocale` and `_wsetlocale` functions by using the `LC_ALL` category. The categories can all be set to the same locale, or you can set each category individually by using a locale argument that has this form:
3030

31-
> LC_ALL_specifier :: locale
32-
&nbsp;&nbsp;&nbsp;&nbsp;| [LC_COLLATE=locale][;LC_CTYPE=locale][;LC_MONETARY=locale][;LC_NUMERIC=locale][;LC_TIME=locale]
31+
> *LC-ALL-specifier* :: *locale*<br/>
32+
&nbsp;&nbsp;&nbsp;&nbsp;\| \[**LC_COLLATE=**_locale_]\[**;LC_CTYPE=**_locale_]\[**;LC_MONETARY=**_locale_]\[**;LC_NUMERIC=**_locale_]\[**;LC_TIME=**_locale_]
3333

3434
You can specify multiple category types, separated by semicolons. Category types that are not specified use the current locale setting. For example, this code snippet sets the current locale for all categories to `de-DE`, and then sets the categories `LC_MONETARY` to `en-GB` and `LC_TIME` to `es-ES`:
3535

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
22
title: "Command-Line Warning D9035"
3-
ms.date: "11/04/2016"
3+
ms.date: "12/10/2018"
44
f1_keywords: ["D9035"]
55
helpviewer_keywords: ["D9035"]
66
ms.assetid: 6254f933-e37a-45ba-b860-1a870d1bc8e8
77
---
88
# Command-Line Warning D9035
99

10-
option 'option' has been deprecated and will be removed in a future release
10+
> option '*option*' has been deprecated and will be removed in a future release
1111
12-
You specified a compiler option that will be removed in a future release of the Visual C++ compiler. This warning is followed by warning [D9036](../../error-messages/tool-errors/command-line-warning-d9036.md) if there is a suggested replacement for *option*.
12+
## Remarks
13+
14+
You specified a compiler option that will be removed in a future release of the compiler. If there is a suggested replacement for *option*, this warning is followed by warning [D9036](../../error-messages/tool-errors/command-line-warning-d9036.md).
1315

1416
The specified option still works, but you should update your build configuration now. As a result, your project is more likely to continue to build when you upgrade the compiler.
1517

16-
## See Also
18+
## See also
1719

18-
[Command-Line Warning D9036](../../error-messages/tool-errors/command-line-warning-d9036.md)
20+
[Deprecated and removed compiler options](../../build/reference/compiler-options-listed-by-category.md#deprecated-and-removed-compiler-options)<br/>
21+
[Command-Line Warning D9036](command-line-warning-d9036.md)
Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
---
22
title: "Command-Line Warning D9036"
3-
ms.date: "11/04/2016"
3+
ms.date: "12/10/2018"
44
f1_keywords: ["D9036"]
55
helpviewer_keywords: ["D9036"]
66
ms.assetid: 68276e84-8d4e-4d4a-a9db-2874c81dfe66
77
---
88
# Command-Line Warning D9036
99

10-
'option_2' instead of 'option_1'
10+
> '*option\_2*' instead of '*option\_1*'
1111
12-
Warning D9036 is a continuation of [Command-Line Warning D9035](../../error-messages/tool-errors/command-line-warning-d9035.md).
12+
## Remarks
13+
14+
Warning D9036 is a continuation of [Command-Line Warning D9035](../../error-messages/tool-errors/command-line-warning-d9035.md). If one compiler option is preferred instead of the deprecated option, it is listed here. For links to more information, see [Deprecated and removed compiler options](../../build/reference/compiler-options-listed-by-category.md#deprecated-and-removed-compiler-options).
15+
16+
## See also
17+
18+
[Deprecated and removed compiler options](../../build/reference/compiler-options-listed-by-category.md#deprecated-and-removed-compiler-options)<br/>
19+
[Command-Line Warning D9035](command-line-warning-d9035.md)

0 commit comments

Comments
 (0)