]> 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>
Tue, 21 May 2024 21:07:08 +0000 (00:07 +0300)
(cherry picked from commit 7312dfbb02197c7f990c7a3cefd027a9387d1473)

src/xz/main.c

index 9c2920b72fc3c25a4bf47b8f3e450bde40a38cb2..9270925ef9ae8d6674091cba7634275e1428299b 100644 (file)
@@ -160,11 +160,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.