mirror of
https://github.com/termux/termux-packages
synced 2024-06-20 23:47:06 +00:00
12 lines
452 B
Diff
12 lines
452 B
Diff
--- a/libtransmission/utils.cc
|
|
+++ b/libtransmission/utils.cc
|
|
@@ -482,7 +482,7 @@
|
|
auto const [out, len] = fmt::format_to_n(std::data(buf), std::size(buf) - 1, "{:.{}f}", x, DBL_DIG);
|
|
*out = '\0';
|
|
|
|
- if (auto* const pt = strstr(std::data(buf), localeconv()->decimal_point); pt != nullptr)
|
|
+ if (auto* const pt = strstr(std::data(buf), "."); pt != nullptr)
|
|
{
|
|
pt[decimal_places != 0 ? decimal_places + 1 : 0] = '\0';
|
|
}
|