Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Locales (was Re: Preliminary VDR 1.1.12 for testing)




  I guess the cleanest fix would be to set:

setlocale(LC_NUMERIC, "C");

..when writing config files and then to change back to "" (take locale
from environment) later.

On Sun, 6 Oct 2002, Oliver Endriss wrote:
> In Germany the locale for the decimal point is the comma.
> Therfore, you cannot use "%g" in the snprintf format string because this
> will result in a string "19,2" instead of "19.2", and DiSEqC won't work...
..
> -                    q += snprintf(q, sizeof(buffer) - 2, "%g", (pos & ~st_Neg) / 10.0);
> +                    q += snprintf(q, sizeof(buffer) - 2, "%u.%u", (pos & ~st_Neg) / 10, (pos & ~st_Neg) % 10);

-- 
Foreca Ltd                                           Jaakko.Hyvatti@foreca.com
Pursimiehenkatu 29-31 B, FIN-00150 Helsinki, Finland     http://www.foreca.com



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index