MSGCONV(1)

πŸ’– MSGCONV(1) β€” the msgconv glow-up πŸ’–

User Commands ✨ like, the manual page for msgconv, bestie. Sit down, grab a boba, we're doing character set conversion for message catalogs and it's gonna be iconic. 🧚


🌸 NAME 🌸

msgconv β€” character set conversion for message catalog. that's the whole job description, she's simple, she's effective, she slays. πŸ’…


✨ SYNOPSIS ✨

msgconv [OPTION] [INPUTFILE]

πŸ¦‹ DESCRIPTION πŸ¦‹

Converts a translation catalog to a different character encoding. Literally just a glow-up for your catalog's encoding. 🌈

Mandatory arguments to long options are mandatory for short options too. (no cap β€” if the long version needs a value, the short one does too, don't play with her.)

πŸ“‚ Input file location:

  • INPUTFILE β€” the input PO file, bestie. that's the one you're feeding in.
  • -D, --directory=DIRECTORY β€” add DIRECTORY to the list for input files search. πŸ—‚οΈ

If no input file is given or if it is -, standard input is read. (yep, the classic - = "read from stdin" move, we love a dash.)

πŸ“ Output file location:

  • -o, --output-file=FILE β€” write output to the specified file. πŸ’Ύ

The results are written to standard output if no output file is specified or if it is -. so like, no file? you get stdout. file is -? you get stdout. it's giving consistent.

πŸ”„ Conversion target:

  • -t, --to-code=NAME β€” encoding for output. this is THE one. the main character option. the encoding you want out. πŸ‘‘

The default encoding is the current locale's encoding. so if you don't pick, she picks for you based on your locale. iykyk.

πŸ”€ Input file syntax:

  • -P, --properties-input β€” input file is in Java .properties syntax. β˜•
  • --stringtable-input β€” input file is in NeXTstep/GNUstep .strings syntax. 🍎

πŸŽ€ Output details:

  • --color β€” use colors and other text attributes always. 🌈
  • --color=WHEN β€” use colors and other text attributes if WHEN. WHEN may be 'always', 'never', 'auto', or 'html'. (four options, pick your fighter.)
  • --style=STYLEFILE β€” specify CSS style rule file for --color. πŸ’…
  • -e, --no-escape β€” do not use C escapes in output (default). this is the default, so like, you're already here.
  • -E, --escape β€” use C escapes in output, no extended chars. no extended chars at all, periodt.
  • --force-po β€” write PO file even if empty. yes bestie, even when it's empty. she said i don't care, i'm writing it anyway.
  • -i, --indent β€” indented output style. πŸ“
  • --no-location β€” suppress '#: filename:line' lines. πŸ™ˆ
  • -n, --add-location β€” preserve '#: filename:line' lines (default). πŸ“
  • --strict β€” strict Uniforum output style. strict!! she's not messing around.
  • -p, --properties-output β€” write out a Java .properties file. β˜•
  • --stringtable-output β€” write out a NeXTstep/GNUstep .strings file. 🍎
  • -w, --width=NUMBER β€” set output page width. πŸ“
  • --no-wrap β€” do not break long message lines, longer than the output page width, into several lines. she said "i will NOT be wrapping, thank you." 🚫
  • -s, --sort-output β€” generate sorted output. πŸ”€
  • -F, --sort-by-file β€” sort output by file location. πŸ—‚οΈ

πŸ’¬ Informative output:

  • -h, --help β€” display this help and exit. πŸ†˜
  • -V, --version β€” output version information and exit. 🏷️

πŸ‘‘ AUTHOR πŸ‘‘

Written by Bruno Haible. genuinely the moment. thank you Bruno. 🫢


πŸ› REPORTING BUGS πŸ›

Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext> or by email to <bug-gettext@gnu.org>. found a bug? don't be shy, tell them, they wanna know fr fr.


Copyright Β© 2001-2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. NO WARRANTY bestie, like literally none, to the extent permitted by law. read it and weep (or just read it). πŸ’€


πŸ” SEE ALSO πŸ”

The full documentation for msgconv is maintained as a Texinfo manual. If the info and msgconv programs are properly installed at your site, the command

info msgconv

should give you access to the complete manual. go read the full thing, she's got lore. πŸ“–


okay that's the whole page!! this was GNU gettext-tools 1.0, dated January 2026 β€” ty for coming to my ted talk, mwah, go convert some catalogs πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from