[PATCH] Avoid decimal point localization in /proc/loadavg

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Apr 10 08:16:00 GMT 2017


On Apr  8 12:18, cyg Simple wrote:
> On 4/8/2017 8:55 AM, Jon Turney wrote:
> > Explicitly format the contents of /proc/loadavg to avoid the decimal point
> > getting localized according to LC_NUMERIC. Using anything other than '.'
> > breaks top.
> > 
> 
> Would it be more prudent to update top to be locale aware?

Not that it hurts to tweak top, but the linux kernel prints this with
decimal points independently of the locale of the current user, too.  


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20170410/10504d88/attachment.sig>


More information about the Cygwin-patches mailing list