{
    "mode": "man",
    "parameter": "genrb",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/genrb/1/json",
    "generated": "2026-06-16T10:26:52Z",
    "synopsis": "genrb  [  -h,  -?, --help ] [ -V, --version ] [ -v, --verbose ] [ -e, --encoding encoding ] [",
    "sections": {
        "NAME": {
            "content": "genrb - compile a resource bundle\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "genrb  [  -h,  -?, --help ] [ -V, --version ] [ -v, --verbose ] [ -e, --encoding encoding ] [",
            "subsections": [
                {
                    "name": "-j --write-java -s --sourcedir -d --destdir",
                    "content": "",
                    "flag": "-d",
                    "long": "--destdir"
                },
                {
                    "name": "-i --icudatadir",
                    "content": "",
                    "flag": "-i",
                    "long": "--icudatadir"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "genrb  converts  the  resource bundle source files passed on the command line to their binary\nform or to a Java source file for use with ICU4J.  The resulting binary files have a .res ex‐\ntension while resource bundle source files typically have a .txt extension. Java source files\nhave a java extension and follow the ICU4J naming conventions.\n\nIt is customary to name the resource bundles by their locale name, i.e. to use a local  iden‐\ntifier  for  the  bundle filename, e.g.  jaJP.txt for Japanese (Japan) data, or root.txt for\nthe root bundle.  In any case, genrb will produce a file whose base name is the name  of  the\nlocale found in the resource file, not the base name of the resource file itself.\n\nThe  binary files can be read directly by ICU, or used by pkgdata(1) for incorporation into a\nlarger archive or library.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-h -? --help",
                    "content": "Print help about usage and exit.\n",
                    "flag": "-?",
                    "long": "--help"
                },
                {
                    "name": "-V --version",
                    "content": "Print the version of genrb and exit.\n",
                    "flag": "-V",
                    "long": "--version"
                },
                {
                    "name": "-v --verbose",
                    "content": "Display extra informative messages during execution.\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-e --encoding",
                    "content": "Set the encoding used to read input files to encoding.  The default  encoding  is  the\ninvariant  (subset  of ASCII or EBCDIC) codepage for the system (see section INVARIANT\nCHARACTERS).  The encodings UTF-8, UTF-16BE, and UTF-16LE are  automatically  detected\nif a byte order mark (BOM) is present.\n",
                    "flag": "-e",
                    "long": "--encoding"
                },
                {
                    "name": "-j --write-java",
                    "content": "Generate a Java source code for use with ICU4J. An optional encoding for the Java file\ncan be given.\n",
                    "flag": "-j",
                    "long": "--write-java"
                },
                {
                    "name": "-s --sourcedir",
                    "content": "Set the source directory to source.  The default source directory is specified by  the\nenvironment  variable  ICUDATA, or the location set when ICU was built if ICUDATA is\nnot set.\n",
                    "flag": "-s",
                    "long": "--sourcedir"
                },
                {
                    "name": "-d --destdir",
                    "content": "Set the destination directory to destination.  The default  destination  directory  is\nspecified  by  the  environment  variable ICUDATA or is the location set when ICU was\nbuilt if ICUDATA is not set.\n",
                    "flag": "-d",
                    "long": "--destdir"
                },
                {
                    "name": "-i --icudatadir",
                    "content": "Look for any necessary ICU data files in directory.  For example, when processing col‐\nlation  overrides,  the file ucadata.dat must be located.  The default ICU data direc‐\ntory is specified by the environment variable ICUDATA.\n",
                    "flag": "-i",
                    "long": "--icudatadir"
                }
            ]
        },
        "INVARIANT CHARACTERS": {
            "content": "The invariant character set consists of the following set of characters, expressed as a stan‐\ndard POSIX regular expression: [a-z]|[A-Z]|[0-9]|| |+|-|*|/.  This is the set which is guar‐\nanteed to be available regardless of code page.\n",
            "subsections": []
        },
        "ENVIRONMENT": {
            "content": "ICUDATA  Specifies the directory containing ICU data. Defaults to ${prefix}/share/icu/70.1/.\nSome  tools  in ICU depend on the presence of the trailing slash. It is thus impor‐\ntant to make sure that it is present if ICUDATA is set.\n",
            "subsections": []
        },
        "VERSION": {
            "content": "70.1\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (C) 2000-2002 IBM, Inc. and others.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "derb(1)\npkgdata(1)\n\n\n\nICU MANPAGE                                 16 April 2002                                   GENRB(1)",
            "subsections": []
        }
    },
    "summary": "genrb - compile a resource bundle",
    "flags": [
        {
            "flag": "-?",
            "long": "--help",
            "arg": null,
            "description": "Print help about usage and exit."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Print the version of genrb and exit."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "Display extra informative messages during execution."
        },
        {
            "flag": "-e",
            "long": "--encoding",
            "arg": null,
            "description": "Set the encoding used to read input files to encoding. The default encoding is the invariant (subset of ASCII or EBCDIC) codepage for the system (see section INVARIANT CHARACTERS). The encodings UTF-8, UTF-16BE, and UTF-16LE are automatically detected if a byte order mark (BOM) is present."
        },
        {
            "flag": "-j",
            "long": "--write-java",
            "arg": null,
            "description": "Generate a Java source code for use with ICU4J. An optional encoding for the Java file can be given."
        },
        {
            "flag": "-s",
            "long": "--sourcedir",
            "arg": null,
            "description": "Set the source directory to source. The default source directory is specified by the environment variable ICUDATA, or the location set when ICU was built if ICUDATA is not set."
        },
        {
            "flag": "-d",
            "long": "--destdir",
            "arg": null,
            "description": "Set the destination directory to destination. The default destination directory is specified by the environment variable ICUDATA or is the location set when ICU was built if ICUDATA is not set."
        },
        {
            "flag": "-i",
            "long": "--icudatadir",
            "arg": null,
            "description": "Look for any necessary ICU data files in directory. For example, when processing col‐ lation overrides, the file ucadata.dat must be located. The default ICU data direc‐ tory is specified by the environment variable ICUDATA."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "derb",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/derb/1/json"
        },
        {
            "name": "pkgdata",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pkgdata/1/json"
        }
    ]
}