Florian Steinel wrote:
Klaus Schmidinger wrote:

Florian Steinel wrote:


But how avoid the use of locale eg. "S99.9E" becomes "S99,9E"?

Take a look at VDR's cSource::ToString() in VDR/sources.c.


Thank, Klaus.

So i should use this:
fprintf (f, "S%u.%u%s:", orbital_pos/10, orbital_pos % 10, west_east_flag_name[we_flag]); // can't simply use "%g" here since the silly 'locale' messes up the decimal point (from vdr/sources.c)


ok, preparing patch.
(is "& ~0x0800" some special mask for vdr or should i use that one too?)

I suppose this expression is wiping out the sign bit and makes the number always a positive one: (1 << 12)/10 == 409, the next power of 2 above 360 degree.


looking forward to your patch,

Holger



--
Info:
To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as 
subject.



Reply via email to