diff options
author | Werner Koch <[email protected]> | 2023-10-27 12:00:59 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2023-10-27 12:22:10 +0000 |
commit | 678c81902750a5a40573d708c5e14dad5225121e (patch) | |
tree | 765f78326aca699330279c991213b2e6d02583e9 | |
parent | gpg: Fix minor memory leak during certain smartcard operations. (diff) | |
download | gnupg-678c81902750a5a40573d708c5e14dad5225121e.tar.gz gnupg-678c81902750a5a40573d708c5e14dad5225121e.zip |
w32: Use utf8 for the asctimestamp function.
* common/gettime.c (asctimestamp) [W32]: Use ".UTF8" for the locale.
--
This has been suggested by the reporter of
GnuPG-bug-id: 6741
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | common/gettime.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ Noteworthy changes in version 2.4.4 (unreleased) ------------------------------------------------ + * Fix garbled time output in non-English Windows. [T6741] + Release-info: https://dev.gnupg.org/T6578 diff --git a/common/gettime.c b/common/gettime.c index 3f1ce0c5a..136c47ca7 100644 --- a/common/gettime.c +++ b/common/gettime.c @@ -850,7 +850,7 @@ asctimestamp (u32 stamp) * 2018 has a lot of additional support but that will for sure * break other things. We should move to ISO strings to get * rid of such problems. */ - setlocale (LC_TIME, ""); + setlocale (LC_TIME, ".UTF8"); done = 1; /* log_debug ("LC_ALL now '%s'\n", setlocale (LC_ALL, NULL)); */ /* log_debug ("LC_TIME now '%s'\n", setlocale (LC_TIME, NULL)); */ |