[RFC] Set the default locale to en_US.UTF-8

Slawa Olhovchenkov slw at zxy.spb.ru
Sun Jan 25 17:10:47 UTC 2015


On Sun, Jan 25, 2015 at 04:50:12PM +0000, Poul-Henning Kamp wrote:

> --------
> In message <7B1D8345-248B-4C44-9568-079BA29614C2 at ixsystems.com>, Jordan Hubbard
>  writes:
> 
> The point about vi(1) is that if you happen to open an ISO-8859 file
> while in UTF-8 mode, change something on the first line, it will
> happily and almost imperceptively truncate your file at the first
> non-UTF byte sequence.
> 
> Needless to say, that is *not* the expected behaviour.

I can't remember other cases, but vi(1) is not exclusion.
Similar cases will be with some like sed/grep.

I think this behaviour must be stopper to _upgrade_ locale on existing
installations.

System software (from FreeBSD base) not exclusive for this behaviour
(dangerous dependens from current locale). This is may be third-party
sofware or software writen by customer. Unexpected setting locale to
UTF-8 may be broken this software.

For new install setting locale to UTF-8 will be ok.


More information about the freebsd-arch mailing list