1 Copyright (C) 2002-2005, International Business Machines
2 Corporation and others. All Rights Reserved.
4 convsamp: a sample program which demonstrates using ICU conversion
6 This sample demonstrates
7 Opening and closing converters using the C api
8 String manipulation in C
9 Writing a custom conversion callback function
13 convsamp.c Main source file
14 flagcb.h codepage output convenience header
15 flagcb.c codepage output convenience implementation
16 ucnv.sln Windows MSVC workspace. Double-click this to get started.
17 ucnv.vcproj Windows MSVC project file
19 To Build ucnv on Windows
20 1. Install and build ICU
21 2. In MSVC, open the workspace file icu\samples\ucnv\ucnv.sln
22 3. Choose a Debug or Release build.
26 1. Start a command shell window
27 2. Add ICU's bin directory to the path, e.g.
28 set PATH=c:\icu\bin;%PATH%
29 (Use the path to where ever ICU is on your system.)
30 3. cd into the ufortune directory, e.g.
31 cd c:\icu\source\samples\ucnv\debug
37 Specify an ICU install directory when running configure,
38 using the --prefix option. The steps to build ICU will look something
40 cd <icu directory>/source
41 runConfigureICU <platform-name> --prefix <icu install directory> [other options]
48 set the variable ICU_PREFIX=<icu install>
52 cd <icu directory>/source/samples/ucnv
57 export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
61 Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
62 If in doubt, run the sample using "gmake check", and note the name of
63 the variable that is used there. LD_LIBRARY_PATH is the correct name
64 for Linux and Solaris.