[lm-sensors] [PATCH] Use the current locale in sensors program

Aurelien Jarno aurelien at aurel32.net
Sun Apr 6 23:02:32 CEST 2008


The previous patch fixed libsensors behaviour wrt locales, so I guess it
is now safe to use the current locale for all categories in the sensors 
program. This includes LC_NUMERIC, so the values are printed using the
correct decimal separator wrt to the locale settings.


Index: prog/sensors/main.c
===================================================================
--- prog/sensors/main.c	(révision 5168)
+++ prog/sensors/main.c	(copie de travail)
@@ -257,7 +257,7 @@
 		{ 0, 0, 0, 0 }
 	};
 
-	setlocale(LC_CTYPE, "");
+	setlocale(LC_ALL, "");
 
 	do_raw = 0;
 	do_sets = 0;

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32 at debian.org         | aurelien at aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



More information about the lm-sensors mailing list