]> 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:27:48 +0000 (00:27 +0300)
(cherry picked from commit 7312dfbb02197c7f990c7a3cefd027a9387d1473)
(cherry picked from commit 9c9a3e7b3f70b214cfdc2aada90d28a54466a5db)

src/xz/main.c

index 90bb69fd07beb371dd11e5cddcc776e9c75e1dca..e761bf8e2f5234636aaee6063c6c95d9638770c6 100644 (file)
@@ -146,11 +146,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.