ReadMe: The Character Set Conversion Tool for Unicode

Version: 10/01/98


COPYRIGHT:
(C) Copyright International Business Machines Corporation, 1998
Licensed Material - Program-Property of IBM - All Rights Reserved.
US Government Users Restricted Rights - Use, duplication, or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.


Introduction

makeconv is a tool that converts character set conversion data into binary files for use by the UnicodeConverter C code. The UnicodeConverter code will not function with text format data files. The user of charset conversion library will need to convert all the data files in text format into binary format.

For a IBM registered code page to/from Unicode conversion data file in the specified data path, it generates .cnv files, which it puts in the same directory. The tool takes a list of file names as argument, with their absolute or relative path, and will generate a corresponding ".cnv" file with the same path. On Unix shells one can easily convert all the ".cnv" files from the text files in the data directory by using wildcards (e.g. makeconv ../../data/locales/*.ucm). On Win32 we have provided a batch file "mkcnvfle.bat" in the same directory you will find makeconv.c. mkcnvfle converts all the ".ucm" files in intlwork/data/locales to ".cnv" files. It requires one argument : Debug or Release so it knows where to look for the makeconv.exe.
(Win32 usage: \intlwork\tools\makeconv\mkcnvfle.bat Debug for debug build, \intlwork\tools\makeconv\mkcnvfle.bat Release, otherwise.)

Building the Tool

To build the tool on Win32 environment is very easy, simply open the "makeconv.dsw" workspace project file in MSVC++ 5.0 compiler.
On Unix the process of building the tool and the ".cnv" files is included in the build process of the library. The provided makefiles will
attempt to build makeconv as it builds other parts of the library. It will also convert all the initial ".ucm" files in data/locales to ".cnv" files.

Limitations

The tools uses stdio.h functions to communicate success or failure to the user. Platforms that don't support stdio will have to adapt
that portion of the code.