transmission/daemon
Mike Gelfand 411b66cf88 fix: use user-preferred locale (#5444)
* Use user-preferred locale

Previous fix adding `L` format specifier was correct but only fixed half
of the problem, as C++ locale is set up to be "C" by default. GTK client
used to call `setlocale(LC_ALL, "")` to set up user-preferred locale
which only affected C functions and `std::locale` (used by libfmt) was
unaware of those changes.

Apply the fix to all the binaries since they're all doing some sort of
output to the user and calling libtransmission helpers, as well as using
libfmt directly.

* Improve libtransmission's json-test

Set the locale C++ way to avoid any sort of inconsistencies, and also
restore it to the old one once finished testing.

* Improve transmission-show test runner script

Quote outputs to avoid CMake error about `message()` being called with
no arguments. Capture stderr to the same output file. Fallback to `git
diff` if `diff` wasn't found. A few other minor changes.
2023-04-27 09:11:06 -05:00
..
CMakeLists.txt Modernize CMake code (ongoing refactoring) (#4515) 2023-01-02 16:23:51 +00:00
daemon-posix.cc chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
daemon-win32.cc chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
daemon.cc fix: use user-preferred locale (#5444) 2023-04-27 09:11:06 -05:00
daemon.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
my-valgrind.sh Refactor shell scripts with syntax and styling fixes 2019-01-16 03:22:29 +08:00
transmission-daemon.1 update documentation links (#2985) 2022-04-25 18:18:35 -05:00
transmission-daemon.service daemon: deprecated --log-error -> --log-level=error (#3201) 2022-06-05 01:13:11 -05:00