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

@@ -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);
}
}
/*