???? ????? ????? ??????? ??? ????? ????? ?? ?????? ?????? ??? ???? ??? ??? ???? ??????? ???? ???? ????? ???? ??????? ?.NET Framework 2.0: "??? ???????? ???????? 'Culture' ??? ????"

?????? ????????? ?????? ?????????
???? ???????: 939949 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

???????

???? ?????? ????? ?????? Microsoft .NET Framework 2.0 ?????? ?? ????? "????? ????? Microsoft" ??????? ??? ???? ??????? ???? ???? Microsoft Windows Server 2003 (?? ????? ??? ??????? ??? ???????? ??? ????? ?????? ?????????? (????? ?? ??? ?????? ???)):
928365 ??? ??????? ?????? ?? ?.NET Framework 2.0 ????? ?????? ??????? Windows Server 2003 ?Windows XP ?Windows 2000: ?? ????? ????
?? ????? ????? ????? ??????? ??? ????? ????? ?? ?????? ?????? ??? ???? ??? ??? ???? ?????????:
?[System.ArgumentException] : Culture name 'Culture' is not supported for the following 13 cultures (??? ???????? ???????? 'Culture' ??? ????? ???????? ???????? ??????? ??? ???????): en-CB az-AZ-Latn uz-UZ-Latn sr-SP-Latn az-AZ-Cyrl uz-UZ-Cyrl sr-SP-Cyrl bs-BA-Cyrl sr-BA-Latn sr-BA-Cyrl bs-BA-Latn iu-CA-Latn div-MV
???????? ??? ???? ??? ??? ???? ????????? ????? ?????? ????? ??? ?????? ?????? ????? ????? ?????? ??? ???????? ???????? ?????? ????????? ????? ??? ???????? ???????? ??????? ?? ???? ??????? ?????? ??? ????? ?????? ??? ???????? ???????? ??????.

?????

????? ???????? ??????? ?? ??? "???????" ?? ????? ?????? ?? ?.NET Framework 2.0. ?????? ??? ??????? ??????? ?????? ???????? ????????. ????? ????? ???????? ???????? ??????? ???? ?????? ????? ??????? ?IETF (RFC 4646 ?RFC 4647)?. ????? ????????? ???? ??? ??????? ??? ????? ???????? ???????? ??? ????? ??????? ??????? ?? ?? ??? ??? ????? ???? ??????.

??????? ????? ???????? ???????? ??????? ??? ????? ???????? ???????? ??????? ?? ??? ???:
?? ??? ??????????? ??? ??????
??? ???????? ???????? ?????? ??? ???????? ???????? ??????
az-AZ-Latn az-Latn-AZ
uz-UZ-Latn uz-Latn-UZ
sr-SP-Latn sr-Latn-CS
az-AZ-Cyrl az-Cyrl-AZ
uz-UZ-Cyrl uz-Cyrl-UZ
sr-SP-Cyrl sr-Cyrl-CS
bs-BA-Cyrl bs-Cyrl-BA
sr-BA-Latn sr-Latn-BA
sr-BA-Cyrl sr-Cyrl-BA
bs-BA-Latn bs-Latn-BA
iu-CA-Latn iu-Latn-CA
div-MV dv-MV
en-CB en-029

???? ??????

?????? ??? ??? ??????? ??? ????? ?? ?????? ?????? ?????? ????? ?? ?????? ??????? ??????? ???? ?????? ????? ???????? ???????? ???????. ?????? ????? ???? ??????? ???????.

?????? ??? ?? ???? ?.NET Framework 2.0 ?????? ???? ??? ????? ?? ??????? ????? ???????? ??????? ???.
  1. ?? ?????? ????? ???? ???????? ?????? ?????? ?????? ?????. ?????? ????? ???? ??????? ???????:
    1. ???? ??? ????? ?? ???? ??? ?????? ?? ???? notepad? ?? ???? ??? ?????.
    2. ?? ???? ???????? ???????? ??????? ?? "???????".
      using System;?
      using System.Globalization;?
      
      public class MakeCultures
      {
          static void Main()?
          {
              CreateCopyCulture("en-029", "en-CB");?
              CreateCopyCulture("az-Latn-AZ", "az-AZ-Latn");?
              CreateCopyCulture("uz-Latn-UZ", "uz-UZ-Latn");?
              CreateCopyCulture("sr-Latn-CS", "sr-SP-Latn");?
              CreateCopyCulture("az-Cyrl-AZ", "az-AZ-Cyrl");?
              CreateCopyCulture("uz-Cyrl-UZ", "uz-UZ-Cyrl");?
              CreateCopyCulture("sr-Cyrl-CS", "sr-SP-Cyrl");?
              CreateCopyCulture("bs-Cyrl-BA", "bs-BA-Cyrl");?
              CreateCopyCulture("sr-Latn-BA", "sr-BA-Latn");?
              CreateCopyCulture("sr-Cyrl-BA", "sr-BA-Cyrl");?
              CreateCopyCulture("bs-Latn-BA", "bs-BA-Latn");?
              CreateCopyCulture("iu-Latn-CA", "iu-CA-Latn");?
              CreateCopyCulture("dv-MV", "div-MV");?
      
               
          }
      
          static void CreateCopyCulture(string strRealName, string strAliasName)?
          {
              try
              {
                  ?// Create a new culture based on the old name
                  CultureAndRegionInfoBuilder carib = new CultureAndRegionInfoBuilder(
                      strAliasName, CultureAndRegionModifiers.None);?
      
                  carib.LoadDataFromCultureInfo(new CultureInfo(strRealName));?
                  carib.LoadDataFromRegionInfo(new RegionInfo(strRealName));?
      
                  carib.Register();?
      
                  ?// Change the existing culture's parent to the old culture
                  carib = new CultureAndRegionInfoBuilder(strRealName,?
                                  CultureAndRegionModifiers.Replacement);?
      
                  carib.Parent = new CultureInfo(strAliasName);?
                  carib.Register();?
      
                  ?// Verify they're registered...?
                  CultureInfo ci = new CultureInfo(strAliasName);?
                  Console.WriteLine("Aliased culture {0} has parent of {1}.", ci, ci.Parent);?
                  ci = new CultureInfo(strRealName);?
                  Console.WriteLine("\"Real\" culture {0} has parent of {1}.", ci, ci.Parent);?
              }
              catch (Exception e)?
              {
                  Console.WriteLine("Unable to create custom culture " + strAliasName);
                  Console.WriteLine(e);?
              }
          }
      }
      
      ?????? ???? ????? ???????? ??? ?????? ???? ???????? ???????? ??????? ??? ???????? ???????? ???????. ?? ???? ?? ???? ???? ???????? ???????? ??????? ?? ???????? ???????? ??????? ?? ??? ?????? ??? ??? ?????? ?? ????? ?? ???? ????? ????? ????? ????? ?? ??????.
    3. ?? ??????? ???? ???? ??? ??? ????.
    4. ?? ???? ?????? ??? ????? ???? ??? ?????????? ????? MakeCultures.cs ?? ?????? ??? ?????? ????? ??? ???? ??????? ?? ?????? ??? ????? ?? ???? ??? ???.
    5. ?? ?????? ?????? "???????".
  2. ?? ?????? ??????? ???? ??? ??????? ?? ?????? ??? 1 ?????? ?????? ?????? ?????. ?????? ????? ???? ??????? ???????:
    1. ???? ??? ????? ?? ???? ??? ?????? ?? ???? cmd? ?? ???? ??? ?????.
    2. ???? cd "My Documents"?? ?? ???? ????? "???????".
    3. ???? ?%windir%\Microsoft.NET\Framework\v2.0.50727\csc /r: sysglobl.dll MakeCultures.cs? ?? ???? ????? "???????".
    4. ???? MakeCultures.exe ?????? ???????? ?????? ???????? ????????.

?????

???? Microsoft ?? ??? ??????? ???? ?? ?????? Microsoft ??????? ?? ??? "????? ???".

???????

???? ???????: 939949 - ????? ??? ??????: 23/?? ??????/1428 - ??????: 1.1
????? ???
  • Microsoft .NET Framework 2.0
????? ??????: 
kbbug kbfix kbsecvulnerability kbqfe kbsecurity kbsecbulletin kbpubtypekc kbexpertiseadvanced KB939949

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com