diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2023-07-24 17:02:47 +0300 |
---|---|---|
committer | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2023-07-24 19:18:50 +0300 |
commit | b0ce7ede1323c529c4f34cf374d43020eeec803f (patch) | |
tree | 18a3d76ee313514d1332bdc0fb38d24400473b65 | |
parent | a5b78ff089a28651282d765349ede783b1a80fa9 (diff) | |
download | busybox-w32-b0ce7ede1323c529c4f34cf374d43020eeec803f.tar.gz busybox-w32-b0ce7ede1323c529c4f34cf374d43020eeec803f.tar.bz2 busybox-w32-b0ce7ede1323c529c4f34cf374d43020eeec803f.zip |
win32: version with UTF8 manifest: add '(Unicode on/off)'
When the UTF8 manifest is enabled at build time, then the version
now includes a string indicating whether unicode is active (e.g. it's
inactive on win 7/8, but should be active on Win10 1903+).
-rw-r--r-- | libbb/appletlib.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 9a291a93a..1c135fde7 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -887,6 +887,10 @@ int busybox_main(int argc UNUSED_PARAM, char **argv) | |||
887 | dup2(1, 2); | 887 | dup2(1, 2); |
888 | full_write2_str(bb_banner); /* reuse const string */ | 888 | full_write2_str(bb_banner); /* reuse const string */ |
889 | #if ENABLE_PLATFORM_MINGW32 | 889 | #if ENABLE_PLATFORM_MINGW32 |
890 | # if ENABLE_FEATURE_UTF8_MANIFEST | ||
891 | full_write2_str(GetACP() == CP_UTF8 ? " (Unicode on)" | ||
892 | : " (Unicode off)"); | ||
893 | # endif | ||
890 | full_write2_str("\n"); | 894 | full_write2_str("\n"); |
891 | #else | 895 | #else |
892 | full_write2_str(" multi-call binary.\n"); /* reuse */ | 896 | full_write2_str(" multi-call binary.\n"); /* reuse */ |