Subject: Re: Suggestion for changes to df(1) and du(1)
To: Tomas Svensson <tsn@gbdev.net>
From: Klaus Klein <kleink@reziprozitaet.de>
List: tech-userlevel
Date: 11/19/2001 23:28:13
Tomas Svensson <tsn@gbdev.net> writes:
> KK> Hardcoding the decial point symbol is bad practice i18n-wise; I'd
> KK> suggest using localeconv()->decimal_point (and setlocale(LC_ALL, "")
> KK> in main()).
>
> This will make df dependent on /usr/share/locale, which can't be a
> good thing for a system utility in /bin ?
It'll make it `dependent' in the same sense (other) programs situated
in /bin using NLS catalogs are (try "LANG=sv df /nonexistent"
yourself); there's nothing wrong about this.
- Klaus