[PATCH] Use the current locale in sensors program

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

 



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




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux