patch943.exe

Description
-----------

Patch the UCONV table "IBM943" for more sensible use.

  * always preserve path separators (\x5c and \x7e).
    (workaround for kLIBC's built-in iconv. see
     http://svn.netlabs.org/libc/ticket/182)
  * add some mappings for compatibility with Windows-31J (Microsoft's variant
    of Shift_JIS).

  UCS to IBM-943
  --------------
  U+005C -> X'5C'   (revserse solidus/Yen sign '\')
  U+007E -> X'7E'   (tilde/overline '~')
  U+2015 -> X'815C' (Windows-31J: Horizontal Bar)
  U+2225 -> X'8161' (Windows-31J: Parallel To)
  U+FF0D -> X'817C' (Windows-31J: Fullwidth Hyphen-Minus)
  U+FF5E -> X'8160' (Windows-31J: Fullwidth Tilde)
  U+FFE4 -> X'FA55' (Windows-31J: Fullwidth Broken Bar)

  IBM-943 to UCS
  --------------
  X'5C'  -> U+005C  (revserse solidus/Yen sign '\')
  X'7E'  -> U+007E  (tilde/overline '~')


And also builds new conversion table "MS932", more consistance with Windows.

  MS-932 to UCS
  -------------
  X'5C'   -> U+005C  (revserse solidus/Yen sign '\')
  X'7E'   -> U+007E  (tilde/overline '~')
  X'7F'   -> U+007F
  X'80'   -> U+0080
  X'815C' -> U+2015  (Windows-31J: Horizontal Bar)
  X'8160' -> U+FF5E  (Windows-31J: Fullwidth Tilde)
  X'8161' -> U+2225  (Windows-31J: Parallel To)
  X'817C' -> U+FF0D  (Windows-31J: Fullwidth Hyphen-Minus)
  X'F8F0' -> U+00A0
  X'F8F1' -> U+00FD
  X'F8F2' -> U+00FE
  X'F8F3' -> U+00FF
  X'FA55' -> U+FFE4  (Windows-31J: Fullwidth Broken Bar)


How to Use (quick'n dirty)
--------------------------

  1. Backup the original file "IBM943" on \LANGUAGE\CODEPAGE.
  2. run the patch943 with update option:

       patch943 --update

  3. When no error has occured, new files IBM943N and MS932 will be built
     on \LANGUAGE\CODEPAGE, and the IBM943 will be updated (IBM943N is same 
     as the original IBM943).
  4. You should better to reboot your system.


Related Links
-------------

 * Wikipedia - Shift JIS
   http://en.wikipedia.org/wiki/Shift-JIS
 * Wikipedia - Microsoft Codepage 932 (in Japanese)
   http://ja.wikipedia.org/wiki/Windows-31J
 * IBM developerWorks - Character Data Conversion Tables (cdctables.zip)
   To get cdctables.zip, search with keyword
   "Character Data Conversion Tables" at developerWorks Downloads
   (http://www.ibm.com/developerworks/views/java/downloads.jsp)
 * Microsoft Globaldev - Windows Codepage 932
   http://www.microsoft.com/globaldev/reference/dbcs/932.htm
 * Problems and Solutions for Unicode and User/Vendor Defined Characters
   http://home.m05.itscom.net/numa/cde/ucs-conv-e/ucs-conv-e.html


History
-------

2008-12-13
  * initial
2008-12-16
  * generate MS932
  * option --update

