ICUPKG(8)
π ICUPKG π
okay bestie, welcome to icupkg, part of the ICU 78.3 Manual situation β she's a manual page (section 8, server-girlie territory) and she's here to help you extract or modify an ICU .dat archive. no cap. let's get into it π
β¨ SYNOPSIS β¨
icupkg [ -h, -?, --help ] [ -tl, --type l | -tb, --type b | -te, --type
e ] [ -c, --copyright | -C, --comment comment ] [ -a, --add list ] [ -r,
--remove list ] [ -x, --extract list ] [ -l, --list ] [ -s, --sourcedir
source ] [ -d, --destdir destination ] [ -w, --writepkg ] [ -m,
--matchmode mode ] infilename [ outfilename ]
π¦ DESCRIPTION π¦
So here's the tea, bestie: icupkg reads your input ICU .dat package file, does whatever you told it to do via the options, swaps it to the platform properties you want (that's charset & endianness, iykyk), and then β if you feel like it β writes the resulting ICU .dat package out to the output file. β¨
And the order of operations is literally fixed, okay? Items get removed, then added, then extracted and listed. That's the pipeline, that's the vibe, periodt.
An ICU .dat package gets written if:
- items are removed or added, or
- the input and output filenames differ, or
- you set the
-w,--writepkgoption π
Not me also telling you this: if the input filename is "new", then an empty package is created. Iconic. And if the output filename is missing, it gets automatically generated from the input filename. Also! If the input filename ends with an l, b, or e matching its platform properties, then the output filename will contain the letter from the -t, --type option. π§
Plot twist: this tool can also just swap a single ICU data file, replacing the former icuswap tool. For this mode, provide the infilename (and optional outfilename) for a non-package ICU data file. The options allowed in this mode are -t, -w, -s and -d. The filenames can be absolute, or relative to the source/dest dir paths. > Other options are not allowed in this mode. π«
πΈ OPTIONS πΈ
-h,-?,--helpβ prints help about usage and then dips. bye bestie π-tl,--type lβ output for the little-endian/ASCII charset family. the output type defaults to the input type.-tb,--type bβ output for the big-endian/ASCII charset family. the output type defaults to the input type.-te,--type eβ output for the big-endian/EBCDIC charset family. the output type defaults to the input type.-c,--copyrightβ includes the ICU copyright notice in the resulting data. π-C,--commentcomment β includes the comment you specify in the resulting data, instead of the ICU copyright notice.-a,--addlist β adds items from the list to the package. The list can be a single filename with a.txtfile extension containing a list of item filenames, or an ICU.datpackage filename. π-r,--removelist β removes items from the list from the package. The list can be a single filename with a.txtfile extension containing a list of item filenames, or an ICU.datpackage filename.-x,--extractlist β extracts items from the list from the package. The list can be a single filename with a.txtfile extension containing a list of item filenames, or an ICU.datpackage filename.-m,--matchmodemode β sets the matching mode for item names with wildcards. π-s,--sourcedirsource β sets the source directory to source. The default source directory is the current directory.-d,--destdirdestination β sets the destination directory to destination. The default destination directory is the current directory.-l,--listβ lists the package items to stdout (after modifying the package, bestie β the order matters!!).
π LIST FILE SYNTAX π
Items are listed on one or more lines and separated by whitespace (space+tab). Comments begin with # and are ignored. Empty lines are ignored too, we're not about that clutter life. β¨
Also ignored: lines where the first non-whitespace character is one of %&'()*+,-./:;<=>?_ β those are being reserved for future syntax, so hands off. π
Items for removal or extraction may contain a single * wildcard character. The * matches zero or more characters. If -m, --matchmode noslash is set, then the * character does not match the / character. π
Items must be listed relative to the package, and the --sourcedir or the --destdir path will be prepended. The paths are only prepended to item filenames while adding or extracting items β not to ICU .dat package or list filenames. π«Ά
Paths may contain / instead of the platform's file separator character, and they get converted as appropriate. slay.
π AUTHORS π
- Markus Scherer
- George Rhoten
the literal icons who made this happen π
β VERSION β
1.0
π COPYRIGHT π
Copyright (C) 2006 IBM, Inc. and others.
π₯ SEE ALSO π₯
go read those too, bestie, they're giving main character energy π
and that's the whole page, fr fr β brought to you by the ICU MANPAGE, dated 18 August 2006, page ICUPKG(8). go forth and swap those packages. mwah π
π¦ where this page comes from
- arch rolling: icu 78.3-1 Β· LicenseRef-Unicode-3.0 AND BSD-2-Clause AND BSD-3-Clause AND NAIST-2003
- ubuntu stonking: icu-devtools 78.3-2ubuntu1 Β· MIT
- Copyright (C) 2016 and later: Unicode, Inc. and others
- Copyright (C) 2000-2006 IBM, Inc. and others
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms