Imported Upstream version 5.12.0.220

Former-commit-id: c477e03582759447177c6d4bf412cd2355aad476
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-04-24 09:31:23 +00:00
parent 8bd104cef2
commit 8fc30896db
1200 changed files with 29534 additions and 26161 deletions

View File

@@ -67,6 +67,20 @@ ${UCM2CP} --region Rare --page 708 --wpage 1256 \
--no-browser-save --no-mailnews-display \
--no-mailnews-save Rare/ibm-1089.ucm >Rare/CP708.cs
${UCM2CP} --region Rare --page 737 --wpage 1253 \
--name 'Greek (DOS)' \
--webname ibm737 --bodyname ibm737 \
--headername ibm737 --no-browser-display \
--no-browser-save --no-mailnews-display \
--no-mailnews-save Rare/ibm-737.ucm >Rare/CP737.cs
${UCM2CP} --region Rare --page 775 --wpage 1257 \
--name 'Baltic (DOS)' \
--webname ibm775 --bodyname ibm775 \
--headername ibm775 --no-browser-display \
--no-browser-save --no-mailnews-display \
--no-mailnews-save Rare/ibm-775.ucm >Rare/CP775.cs
${UCM2CP} --region West --page 850 --wpage 1252 \
--name 'Western European (DOS)' \
--webname ibm850 --bodyname ibm850 \
@@ -481,8 +495,6 @@ exit 0
# 709 Arabic - ASMO 449+, BCON V4
# 710 Arabic - Transparent Arabic
# 720 Arabic - Transparent ASMO
# 737 OEM - Greek (formerly 437G)
# 775 OEM - Baltic
# 936 Chinese Simplified (GB2312)
# 949 Korean
# 950 Chinese Traditional (Big5)

View File

@@ -23,12 +23,15 @@
*/
/*
Usage: uni2tab
Required files from ftp.unicode.org: Unihan.txt, CP932.TXT
*/
*
* Usage: uni2tab
*
* Required files from ftp.unicode.org: Unihan.txt, CP932.TXT
*
* Unihan.txt and CP932.TXT can be found at:
* ftp://www.unicode.org/Public/5.0.0/ucd/Unihan.txt
* ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT
*/
#include <stdio.h>
#include <string.h>
@@ -321,6 +324,13 @@ static void convertSJISLine(char *buf)
/* Non-CJK characters within JIS */
processJis0208(code, (offset / 94) + 1, (offset % 94) + 1);
}
else if(code >= 0x00A7 && code <= 0x00F7)
{
/* Non-CJK characters within JIS for which unicodeToJis should not be
* edited. In addition to this, do not track lowJis and highJis. */
jisx0208ToUnicode[offset] = (unsigned short)(code & 0xFF);
jisx0208ToUnicode[offset + 1] = (((unsigned short)(code & 0x00FF)) >> 8);
}
}
/*