From 8f24b4bf7da39858b293605308c518f175a31135 Mon Sep 17 00:00:00 2001 From: Ryan Sawhill Aroha Date: Fri, 17 Mar 2017 10:52:40 -0400 Subject: [PATCH] implement #212, fix for #208 --- xsos | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xsos b/xsos index 681969f..d731a4f 100755 --- a/xsos +++ b/xsos @@ -1,5 +1,5 @@ #!/bin/bash -# xsos v0.7.10 last mod 2016/09/09 +# xsos v0.7.11 last mod 2017/03/17 # Latest version at # RPM packages available at # Copyright 2012-2016 Ryan Sawhill Aroha @@ -15,6 +15,9 @@ # General Public License for more details. #------------------------------------------------------------------------------- +# See https://github.com/ryran/xsos/issues/208 +export LC_ALL=en_US.UTF-8 + # Get version from line #2 version=$(sed '2q;d' $0) @@ -1522,7 +1525,7 @@ CPUINFO() { # Check important cpu flags # pae=physical address extensions * lm=64-bit * vmx=Intel hw-virt * svm=AMD hw-virt # ht=hyper-threading * aes=AES-NI * constant_tsc=Constant Time Stamp Counter - cpu_flags=$(egrep -o "pae|lm|vmx|svm|ht|aes|constant_tsc|rdrand" <"$cpuinfo_input" | sort -u | sed ':a;N;$!ba;s/\n/,/g') + cpu_flags=$(egrep -o "pae|lm|vmx|svm|ht|aes|constant_tsc|rdrand|nx" <"$cpuinfo_input" | sort -u | sed ':a;N;$!ba;s/\n/,/g') [[ -n $cpu_flags ]] && cpu_flags="(flags: $cpu_flags)" # Print it all out