Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2851,10 +2851,10 @@ private static bool IsAvailableFarEastCodePage(uint codePage)
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;
}

Expand Down Expand Up @@ -2920,7 +2920,7 @@ private static int LengthInBufferCellsFE(char c, ref HWND hwnd, ref HDC hDC, ref
(0xffd2 <= c && c <= 0xffd7) ||
(0xffda <= c && c <= 0xffdc))
{
/* Halfwidth Hangule variants */
/* Halfwidth Hangul variants */
return 1;
}
else if (0xffe0 <= c && c <= 0xffe6)
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.PowerShell.PSReadLine/ConsoleLib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,10 @@ public int LengthInBufferCells(char c)
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;
}

Expand Down Expand Up @@ -798,7 +798,7 @@ internal int LengthInBufferCellsFE(char c)
(0xffd2 <= c && c <= 0xffd7) ||
(0xffda <= c && c <= 0xffdc))
{
/* Halfwidth Hangule variants */
/* Halfwidth Hangul variants */
return 1;
}
else if (0xffe0 <= c && c <= 0xffe6)
Expand Down