1DERB(1) ICU 60.2 Manual DERB(1)
2
3
4
6 derb - disassemble a resource bundle
7
9 derb [ -h, -?, --help ] [ -V, --version ] [ -v, --verbose ] [ -e,
10 --encoding encoding ] [ --bom ] [ -t, --truncate [ size ] ] [ -s,
11 --sourcedir source ] [ -d, --destdir destination ] [ -i, --icudatadir
12 directory ] [ -c, --to-stdout ] bundle ...
13
15 derb reads the compiled resource bundle files passed on the command
16 line and write them back in text form. The resulting text files have a
17 .txt extension while compiled resource bundle source files typically
18 have a .res extension.
19
20 It is customary to name the resource bundles by their locale name, i.e.
21 to use a local identifier for the bundle filename, e.g. ja_JP.res for
22 Japanese (Japan) data, or root.res for the root bundle. This is espe‐
23 cially important for derb since the locale name is not accessible
24 directly from the compiled resource bundle, and to know which locale to
25 ask for when opening the bundle. derb will produce a file whose base
26 name is the base name of the compiled resource file itself. If the
27 --to-stdout, -c option is used, however, the text will be written on
28 the standard output.
29
31 -h, -?, --help
32 Print help about usage and exit.
33
34 -V, --version
35 Print the version of derb and exit.
36
37 -v, --verbose
38 Display extra informative messages during execution.
39
40 -A, --suppressAliases
41 Don't follow aliases when producing output.
42
43 -e, --encoding encoding
44 Set the encoding used to write output files to encoding. The
45 default encoding is the invariant (subset of ASCII or EBCDIC)
46 codepage for the system (see section INVARIANT CHARACTERS). The
47 choice of the encoding does not affect the data, just their rep‐
48 resentation. Characters that cannot be represented in the encod‐
49 ing will be represented using \uhhhh escape sequences.
50
51 --bom Write a byte order mark (BOM) at the beginning of the file.
52
53 -l, --locale locale
54 Set the locale for the resource bundle, which is used both in
55 the generated text and as the base name of the output file.
56
57 -t, --truncate [ size ]
58 Truncate individual resources (strings or binary data) to size
59 bytes. The default if size is not specified is 80 bytes.
60
61 -s, --sourcedir source
62 Set the source directory to source. The default source direc‐
63 tory is the current directory. If - is passed for source, then
64 the bundle will be looked for in its default location, specified
65 by the ICU_DATA environment variable (or defaulting to the loca‐
66 tion set when ICU was built if ICU_DATA is not set).
67
68 -d, --destdir destination
69 Set the destination directory to destination. The default des‐
70 tination directory is specified by the environment variable
71 ICU_DATA or is the location set when ICU was built if ICU_DATA
72 is not set.
73
74 -i, --icudatadir directory
75 Look for any necessary ICU data files in directory. For exam‐
76 ple, when processing collation overrides, the file ucadata.dat
77 must be located. The default ICU data directory is specified by
78 the environment variable ICU_DATA.
79
80 -c, --to-stdout
81 Write the disassembled bundle on standard output instead of into
82 a file.
83
85 When the option --bom is used, the character U+FEFF is written in the
86 destination encoding regardless of whether it is a Unicode transforma‐
87 tion format (UTF) or not. This option should only be used with an UTF
88 encoding, as byte order marks are not meaningful for other encodings.
89
91 The invariant character set consists of the following set of charac‐
92 ters, expressed as a standard POSIX regular expression: [a-z]|[A-
93 Z]|[0-9]|_| |+|-|*|/. This is the set which is guaranteed to be avail‐
94 able regardless of code page.
95
97 ICU_DATA Specifies the directory containing ICU data. Defaults to
98 /usr/share/icu/60.2/. Some tools in ICU depend on the pres‐
99 ence of the trailing slash. It is thus important to make sure
100 that it is present if ICU_DATA is set.
101
103 Vladimir Weinstein
104 Yves Arrouye
105
107 1.0
108
110 Copyright (C) 2002 IBM, Inc. and others.
111
113 genrb(1)
114
115
116
117
118ICU MANPAGE 7 Mar 2014 DERB(1)