aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2024-02-17 23:07:35 +0200
committerLasse Collin <lasse.collin@tukaani.org>2024-02-17 23:07:35 +0200
commit7312dfbb02197c7f990c7a3cefd027a9387d1473 (patch)
tree34abd3c9c26b6fb92b650e275ea8eff32cdcb5d4 /src
parentxz: Fix message_init() description. (diff)
downloadxz-7312dfbb02197c7f990c7a3cefd027a9387d1473.tar.xz
xz: Tweak comments.
Diffstat (limited to 'src')
-rw-r--r--src/xz/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xz/main.c b/src/xz/main.c
index 0685bc27..3d3d11d7 100644
--- a/src/xz/main.c
+++ b/src/xz/main.c
@@ -178,11 +178,13 @@ main(int argc, char **argv)
InitializeCriticalSection(&exit_status_cs);
#endif
- // Set up the progname variable.
+ // Set up the progname variable needed for messages.
tuklib_progname_init(argv);
// Initialize the file I/O. This makes sure that
// stdin, stdout, and stderr are something valid.
+ // This must be done before we might open any files
+ // even indirectly like locale and gettext initializations.
io_init();
// Set up the locale and message translations.