1Copyright (c) 2001-2010 International Business Machines
2Corporation and others. All Rights Reserved.
3uresb: Resource Bundle
4
5This sample demonstrates
6        Using ICU's CharSet Detection API
7
8
9Files:
10    csdet.c        Main source file
11    *.txt          Various sample .txt files
12
13To 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.
17    4.  Build.
18
19To Run on Windows
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)
27            csdet eucJP.txt
28    WARNING: The .txt files must be in the same directory as the executable, which is not the case by default on some systems.
29
30To Build on Unixes
31    1.  Build ICU.
32        Specify an ICU install directory when running configure,
33        using the --prefix option.  The steps to build ICU will look something
34        like this:
35           cd <icu directory>/source
36           runConfigureICU <platform-name> --prefix <icu install directory> [other options]
37           gmake all
38
39    2.  Install ICU,
40           gmake install
41
42    3.  Compile
43           cd <icu directory>/source/samples/uresb
44           gmake ICU_PREFIX=<icu install directory) ICU_PATH=<icu source directory>
45
46 To Run on Unixes
47           cd <icu directory>/source/samples/uresb
48
49           gmake ICU_PREFIX=<icu install directory>  check
50               -or-
51
52           export LD_LIBRARY_PATH=<icu install directory>/lib:.:$LD_LIBRARY_PATH
53           csdet eucJP.txt
54
55
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.
60
61