1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-23 14:40:43 +00:00
transmission/libtransmission
Mike Gelfand e8fcb025a0
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:10:33 -05:00
..
.clang-tidy
announce-list.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
announce-list.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
announcer-common.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
announcer-http.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
announcer-udp.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
announcer.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
announcer.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
bandwidth.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
bandwidth.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
benc.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
bitfield.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
bitfield.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
block-info.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
block-info.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
blocklist.cc refactor: add tr_sys_dir_get_files() (#5412) 2023-04-18 16:23:20 -05:00
blocklist.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
cache.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
cache.h perf: pass by reference (#4876) 2023-04-14 17:06:26 -05:00
clients.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
clients.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
CMakeLists.txt feat: add generic favicon_cache class for reuse between Qt, GTK app (#5294) 2023-04-22 21:11:16 -05:00
completion.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
completion.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
crypto-utils-ccrypto.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
crypto-utils-fallback.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
crypto-utils-mbedtls.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
crypto-utils-openssl.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
crypto-utils-wolfssl.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
crypto-utils.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
crypto-utils.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
error-types.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
error.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
error.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
favicon-cache.h feat: add generic favicon_cache class for reuse between Qt, GTK app (#5294) 2023-04-22 21:11:16 -05:00
file-piece-map.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
file-piece-map.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
file-posix.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
file-win32.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
file.cc refactor: add tr_sys_dir_get_files() (#5412) 2023-04-18 16:23:20 -05:00
file.h refactor: add tr_sys_dir_get_files() (#5412) 2023-04-18 16:23:20 -05:00
handshake.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
handshake.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
history.h
inout.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
inout.h perf: pass by reference (#4876) 2023-04-14 17:06:26 -05:00
interned-string.h chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
libt.dox
log.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
log.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
lru-cache.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
magnet-metainfo.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
magnet-metainfo.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
makelog
makemeta.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
makemeta.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
mime-types.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
mime-types.js chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
net.cc refactor: add tr_address::is_any() (#5398) 2023-04-15 19:30:20 -05:00
net.h refactor: add tr_address::is_any() (#5398) 2023-04-15 19:30:20 -05:00
open-files.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
open-files.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
peer-common.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
peer-io.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
peer-io.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
peer-mgr-active-requests.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
peer-mgr-active-requests.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
peer-mgr-wishlist.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
peer-mgr-wishlist.h feat: sequential download (#4795) 2023-04-14 11:47:54 -05:00
peer-mgr.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
peer-mgr.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
peer-mse.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
peer-mse.h chore: remove invalid assertion test (#4860) 2023-02-12 18:38:18 -06:00
peer-msgs.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
peer-msgs.h fix: crash in peer stats (#5279) 2023-04-14 16:03:08 -05:00
peer-socket.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
peer-socket.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
platform-quota.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
platform-quota.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
platform.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
platform.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
port-forwarding-natpmp.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
port-forwarding-natpmp.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
port-forwarding-upnp.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
port-forwarding-upnp.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
port-forwarding.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
port-forwarding.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
quark.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
quark.h feat: sequential download (#4795) 2023-04-14 11:47:54 -05:00
resume.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
resume.h fix: 5053 old torrent files keep appearing (#5117) 2023-03-01 20:12:19 -06:00
rpc-server.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
rpc-server.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
rpcimpl.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
rpcimpl.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
session-alt-speeds.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
session-alt-speeds.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
session-id.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
session-id.h fix: uninitialized session_id_t values (#5396) 2023-04-15 00:07:07 -05:00
session-settings.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
session-settings.h fix: generate peer-id on launch (#5233) 2023-03-15 20:53:48 -05:00
session-thread.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
session-thread.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
session.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
session.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
stats.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
stats.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
subprocess-posix.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
subprocess-win32.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
subprocess.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
timer-ev.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
timer-ev.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
timer.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
torrent-ctor.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
torrent-files.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
torrent-files.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
torrent-magnet.cc fix: bug that prevented providing the final metadata piece (#5460) 2023-04-26 19:40:49 -05:00
torrent-magnet.h fix: magnet links are always paused when added (#4856) 2023-02-13 12:33:33 -06:00
torrent-metainfo.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
torrent-metainfo.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
torrent.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
torrent.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
torrents.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
torrents.h refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
tr-arc4.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
tr-assert.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
tr-assert.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
tr-assert.mm chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
tr-buffer.h fix: Buffer::Buffer(Buffer&&) bug (#5435) 2023-04-22 16:10:09 -05:00
tr-dht.cc fix: minor warnings (#5409) 2023-04-17 23:11:09 -05:00
tr-dht.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
tr-getopt.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
tr-getopt.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
tr-lpd.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
tr-lpd.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
tr-macros.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
tr-popcount.h fix: Remove faulty popcnt features checks for MSVC [#4872] (#4886) 2023-02-18 02:11:56 +00:00
tr-strbuf.h chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
tr-udp.cc refactor: add tr_address::is_any() (#5398) 2023-04-15 19:30:20 -05:00
tr-utp.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
tr-utp.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
transmission.h Don't force fetch metainfo at startup and new torrents. (#4895) 2023-02-14 22:19:47 -06:00
utils-ev.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
utils-ev.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
utils.cc fix: use user-preferred locale (#5444) 2023-04-27 09:10:33 -05:00
utils.h fix: use user-preferred locale (#5444) 2023-04-27 09:10:33 -05:00
utils.mm fix: potential NSString leak in tr_strv_convert_utf8() 2023-04-11 17:36:22 -05:00
variant-benc.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
variant-common.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
variant-converters.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
variant-json.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
variant.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
variant.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
verify.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
verify.h
version.h.in
watchdir-base.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00
watchdir-generic.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
watchdir-inotify.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
watchdir-kqueue.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
watchdir-win32.cc chore: include directory name in libtransmission #includes (#5308) 2023-04-14 14:33:23 -05:00
watchdir.cc refactor: add tr_sys_dir_get_files() (#5412) 2023-04-18 16:23:20 -05:00
watchdir.h
web-utils.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
web-utils.h chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
web.cc chore: prefer fmt/core.h over fmt/format.h (#5404) 2023-04-16 15:34:19 -05:00
web.h feat: add generic favicon_cache class for reuse between Qt, GTK app (#5294) 2023-04-22 21:11:16 -05:00
webseed.cc refactor: snake_case in libtransmission class methods (#5428) 2023-04-22 20:25:55 -05:00
webseed.h chore: update copyrights to 2023 (#4834) 2023-02-11 14:49:42 -06:00