Since not everyone have en_US.UTF-8 locale, default to POSIX locale.
This changes default sort order, so some expected results were updated.
Signed-off-by: Yann Droneaud <yann@droneaud.fr>
-ID_FS_LABEL_ENC=test-cram
ID_FS_LABEL=test-cram
+ID_FS_LABEL_ENC=test-cram
ID_FS_TYPE=cramfs
ID_FS_USAGE=filesystem
-ID_FS_LABEL_ENC=test-ext2
ID_FS_LABEL=test-ext2
+ID_FS_LABEL_ENC=test-ext2
ID_FS_TYPE=ext2
ID_FS_USAGE=filesystem
ID_FS_UUID=22f0eac3-5c89-4ec1-9076-60799119aaea
-ID_FS_LABEL_ENC=test-ext3
ID_FS_LABEL=test-ext3
+ID_FS_LABEL_ENC=test-ext3
ID_FS_SEC_TYPE=ext2
ID_FS_TYPE=ext3
ID_FS_USAGE=filesystem
-ID_FS_LABEL_ENC=TEST-FAT
ID_FS_LABEL=TEST-FAT
+ID_FS_LABEL_ENC=TEST-FAT
ID_FS_SEC_TYPE=msdos
ID_FS_TYPE=vfat
ID_FS_USAGE=filesystem
-ID_FS_LABEL_ENC=mycluster:mygfs2
ID_FS_LABEL=mycluster:mygfs2
+ID_FS_LABEL_ENC=mycluster:mygfs2
ID_FS_TYPE=gfs2
ID_FS_USAGE=filesystem
ID_FS_VERSION=1
-ID_FS_LABEL_ENC=P01\x20S16A
ID_FS_LABEL=P01_S16A
+ID_FS_LABEL_ENC=P01\x20S16A
ID_FS_TYPE=hpfs
ID_FS_USAGE=filesystem
ID_FS_UUID=3BC2-32D5
-ID_FS_LABEL_ENC=IsoVolumeName
ID_FS_LABEL=IsoVolumeName
+ID_FS_LABEL_ENC=IsoVolumeName
ID_FS_TYPE=iso9660
ID_FS_USAGE=filesystem
-ID_FS_LABEL_ENC=ThisWonderfulLabelIsVeryVeryLong
ID_FS_LABEL=ThisWonderfulLabelIsVeryVeryLong
+ID_FS_LABEL_ENC=ThisWonderfulLabelIsVeryVeryLong
ID_FS_TYPE=iso9660
ID_FS_USAGE=filesystem
ID_FS_VERSION=Joliet\x20Extension
-ID_FS_LABEL_ENC=ThisIsVolumeName
ID_FS_LABEL=ThisIsVolumeName
+ID_FS_LABEL_ENC=ThisIsVolumeName
ID_FS_TYPE=iso9660
ID_FS_USAGE=filesystem
ID_FS_VERSION=Joliet\x20Extension
-ID_FS_LABEL_ENC=test-jfs
ID_FS_LABEL=test-jfs
+ID_FS_LABEL_ENC=test-jfs
ID_FS_TYPE=jfs
ID_FS_USAGE=filesystem
ID_FS_UUID=9bf7b82e-7583-4c74-99a4-189a691f27b5
ID_FS_TYPE=LVM2_member
ID_FS_USAGE=raid
-ID_FS_UUID_ENC=Vynv4k-APH8-xQER-HSBb-8VJ3-SvFF-PB5O1U
ID_FS_UUID=Vynv4k-APH8-xQER-HSBb-8VJ3-SvFF-PB5O1U
+ID_FS_UUID_ENC=Vynv4k-APH8-xQER-HSBb-8VJ3-SvFF-PB5O1U
ID_FS_VERSION=LVM2\x20001
-ID_FS_LABEL_ENC=Новый\x20том
ID_FS_LABEL=Новый_том
+ID_FS_LABEL_ENC=Новый\x20том
ID_FS_TYPE=ntfs
ID_FS_USAGE=filesystem
ID_FS_UUID=09CBB6DE30C87310
-ID_FS_LABEL_ENC=test-ocfs2
ID_FS_LABEL=test-ocfs2
+ID_FS_LABEL_ENC=test-ocfs2
ID_FS_TYPE=ocfs2
ID_FS_USAGE=filesystem
ID_FS_UUID=6b6bfbea-3a79-4f0c-b166-a20776102445
-ID_FS_LABEL_ENC=TESTREISER
ID_FS_LABEL=TESTREISER
+ID_FS_LABEL_ENC=TESTREISER
ID_FS_TYPE=reiserfs
ID_FS_USAGE=filesystem
ID_FS_UUID=9efe7863-b124-46dc-ad68-8ecd04230a7b
-ID_FS_LABEL_ENC=TESTR4
ID_FS_LABEL=TESTR4
+ID_FS_LABEL_ENC=TESTR4
ID_FS_TYPE=reiser4
ID_FS_USAGE=filesystem
ID_FS_UUID=9722633c-d69a-4881-b1c8-bedecbbf39d2
-ID_FS_LABEL_ENC=test-romfs
ID_FS_LABEL=test-romfs
+ID_FS_LABEL_ENC=test-romfs
ID_FS_TYPE=romfs
ID_FS_USAGE=filesystem
-ID_FS_LABEL_ENC=TESTVFAT
ID_FS_LABEL=TESTVFAT
+ID_FS_LABEL_ENC=TESTVFAT
ID_FS_TYPE=vfat
ID_FS_USAGE=filesystem
ID_FS_UUID=1423-AAE1
-ID_FS_LABEL_ENC=SWAP-TEST
ID_FS_LABEL=SWAP-TEST
+ID_FS_LABEL_ENC=SWAP-TEST
ID_FS_TYPE=swap
ID_FS_USAGE=other
ID_FS_UUID=8ff8e77f-8553-485e-8656-58be67a81666
-ID_FS_LABEL_ENC=test-udf
ID_FS_LABEL=test-udf
+ID_FS_LABEL_ENC=test-udf
ID_FS_TYPE=udf
ID_FS_USAGE=filesystem
-ID_FS_LABEL_ENC=toto
ID_FS_LABEL=toto
+ID_FS_LABEL_ENC=toto
ID_FS_TYPE=VMFS
ID_FS_USAGE=filesystem
ID_FS_UUID=49edf844-ebfc28f3-65cb-0021280083cf
-ID_FS_LABEL_ENC=test-xfs
ID_FS_LABEL=test-xfs
+ID_FS_LABEL_ENC=test-xfs
ID_FS_TYPE=xfs
ID_FS_USAGE=filesystem
ID_FS_UUID=8c8a0a5a-9f57-492e-9610-45a61f38f58a
-ID_FS_LABEL_ENC=tank
ID_FS_LABEL=tank
+ID_FS_LABEL_ENC=tank
ID_FS_TYPE=zfs_member
ID_FS_USAGE=raid
ID_FS_UUID=1782036546311300980
function ts_init_env {
local mydir=$(ts_abspath $(dirname $0))
- export LANG="en_US.UTF-8"
+ LANG="POSIX"
+ LANGUAGE="POSIX"
+ LC_ALL="POSIX"
+ CHARSET="UTF-8"
+
+ export LANG LANGUAGE LC_ALL CHARSET
TS_TOPDIR=$(ts_abspath $mydir/../../)
TS_SCRIPT="$mydir/$(basename $0)"