From 9e30dc64db3114b57f2300b16b060449ec3045f8 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Fri, 2 Sep 2016 15:14:45 +0000 Subject: [PATCH] spelling: Hangul (unify spelling) Before this commit there were three spellings, one of which was a typo, one was a variant spelling, and one was the dominant spelling. Microsoft generally uses Hangul for its enums: https://msdn.microsoft.com/en-us/library/cc250412.aspx And this is the dominant spelling in general and as used in web browsers. --- .../host/msh/ConsoleControl.cs | 6 +++--- src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs index 2ef6624a6..cbf3bc95a 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleControl.cs @@ -2851,10 +2851,10 @@ namespace Microsoft.PowerShell private static bool IsAnyDBCSCharSet(uint charSet) { const uint SHIFTJIS_CHARSET = 128; - const uint HANGEUL_CHARSET = 129; + const uint HANGUL_CHARSET = 129; const uint CHINESEBIG5_CHARSET = 136; const uint GB2312_CHARSET = 134; - return charSet == SHIFTJIS_CHARSET || charSet == HANGEUL_CHARSET || + return charSet == SHIFTJIS_CHARSET || charSet == HANGUL_CHARSET || charSet == CHINESEBIG5_CHARSET || charSet == GB2312_CHARSET; } @@ -2920,7 +2920,7 @@ namespace Microsoft.PowerShell (0xffd2 <= c && c <= 0xffd7) || (0xffda <= c && c <= 0xffdc)) { - /* Halfwidth Hangule variants */ + /* Halfwidth Hangul variants */ return 1; } else if (0xffe0 <= c && c <= 0xffe6) diff --git a/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs b/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs index fdadc62cb..ed04122a3 100644 --- a/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs +++ b/src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs @@ -713,10 +713,10 @@ namespace Microsoft.PowerShell.Internal internal static bool IsAnyDBCSCharSet(uint charSet) { const uint SHIFTJIS_CHARSET = 128; - const uint HANGEUL_CHARSET = 129; + const uint HANGUL_CHARSET = 129; const uint CHINESEBIG5_CHARSET = 136; const uint GB2312_CHARSET = 134; - return charSet == SHIFTJIS_CHARSET || charSet == HANGEUL_CHARSET || + return charSet == SHIFTJIS_CHARSET || charSet == HANGUL_CHARSET || charSet == CHINESEBIG5_CHARSET || charSet == GB2312_CHARSET; } @@ -798,7 +798,7 @@ namespace Microsoft.PowerShell.Internal (0xffd2 <= c && c <= 0xffd7) || (0xffda <= c && c <= 0xffdc)) { - /* Halfwidth Hangule variants */ + /* Halfwidth Hangul variants */ return 1; } else if (0xffe0 <= c && c <= 0xffe6)