1 Copyright (c) 2001-2010 International Business Machines
2 Corporation and others. All Rights Reserved.
5 This sample demonstrates
6 Using ICU's CharSet Detection API
10 csdet.c Main source file
11 *.txt Various sample .txt files
13 To Build uresb on Windows
14 1. Install and build ICU
15 2. In MSVC, open the workspace file icu\samples\uresb\uresb.sln
16 3. Choose a Debug or Release build.
20 1. Start a command shell window
21 2. Add ICU's bin directory to the path, e.g.
22 set PATH=c:\icu\bin;%PATH%
23 (Use the path to where ever ICU is on your system.)
24 3. cd into the uresb directory, e.g.
25 cd c:\icu\source\samples\uresb\debug
26 4. Run it (with a locale name, ex. english)
28 WARNING: The .txt files must be in the same directory as the executable, which is not the case by default on some systems.
32 Specify an ICU install directory when running configure,
33 using the --prefix option. The steps to build ICU will look something
35 cd <icu directory>/source
36 runConfigureICU <platform-name> --prefix <icu install directory> [other options]
43 cd <icu directory>/source/samples/uresb
44 gmake ICU_PREFIX=<icu install directory) ICU_PATH=<icu source directory>
47 cd <icu directory>/source/samples/uresb
49 gmake ICU_PREFIX=<icu install directory> check
52 export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
56 Note: The name of the LD_LIBRARY_PATH variable is different on some systems.
57 If in doubt, run the sample using "gmake check", and note the name of
58 the variable that is used there. LD_LIBRARY_PATH is the correct name
59 for Linux and Solaris.