]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Tweak comments.
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 17 Feb 2024 21:07:35 +0000 (23:07 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 17 Feb 2024 21:07:35 +0000 (23:07 +0200)
src/xz/main.c

index 0685bc27c69851cf27cbde8627b315c5dd85a831..3d3d11d75be4cdb1ad15de7fc338e8f4d3d193fe 100644 (file)
@@ -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.