chiark / gitweb /
vim: Use sensible.vim as system vimrc
[termux-packages] / packages / transmission / no_locale.patch
1 diff -u -r ../transmission-2.82/libtransmission/utils.c ./libtransmission/utils.c
2 --- ../transmission-2.82/libtransmission/utils.c        2013-08-09 04:45:40.000000000 +0200
3 +++ ./libtransmission/utils.c   2014-01-29 00:08:31.000000000 +0100
4 @@ -1412,7 +1412,7 @@
5    char buf[128];
6    const int max_precision = (int) log10 (1.0 / DBL_EPSILON) - 1;
7    tr_snprintf (buf, sizeof (buf), "%.*f", max_precision, x);
8 -  if ((pt = strstr (buf, localeconv ()->decimal_point)))
9 +  if ((pt = strstr (buf, ".")))
10      pt[precision ? precision+1 : 0] = '\0';
11    return atof (buf);
12  }