I was using unix sort command for sorting some OL dumps and it wasn't
giving me results as I expected.
$ cat c.txt
x 5
x_5ti 1
x 6
$ sort c.txt
x 5
x_5ti 1
x 6
After quite a bit of exploration, I realized that this problem is
caused by the locale setting. Locale is set to "en_US.UTF-8" by
default and changing it to "C" makes sort behave well.
$ export LC_ALL="C"
$ sort c.txt
x 5
x 6
x_5ti 1
In fact, there is a warning in the sort man page.
*** WARNING *** The locale specified by the environment
affects sort order. Set LC_ALL=C
to get the traditional sort order that uses native byte values.
Is there any special reason for using "en_US.UTF-8" locale in all IA
nodes? Can we change locale to "C" in all OL nodes?
Anand
_______________________________________________
Ol-discuss mailing list
[email protected]
http://mail.archive.org/cgi-bin/mailman/listinfo/ol-discuss
To unsubscribe from this mailing list, send email to
[email protected]