(fraccompare, numcompare): Merge the NLS and
authorJim Meyering <jim@meyering.net>
Sun, 9 May 1999 03:27:24 +0000 (03:27 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 9 May 1999 03:27:24 +0000 (03:27 +0000)
commitdd992130c617c3be95b832feea4c9f19156b0b91
treea35b2c500b1fc6c7b5f9e95e0dedae0282945a9d
parent02d760e23277c3f147b8d8f342ce1bea49870dcb
(fraccompare, numcompare): Merge the NLS and
non-NLS versions into a single function.

(decimal_point): Now char, since we no longer convert to unsigned char.
(th_sep): Now int, since we use a value out of char range to denote
the absence of a thousands separator.
(IS_THOUSANDS_SEP): New macro.
(USE_NEW_FRAC_COMPARE): Remove.
(nls_set_fraction): Arg is now char, not unsigned char.
Set th_sep to CHAR_MAX + 1 if there is no thousands separator.
(numcompare): Don't convert to unsigned char unless necessary.
(main): Turn off decimal points and thousand separators if they
are multibyte characters, as we don't support that yet.
src/sort.c