Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Sep 2005 15:03:06 +0300
From:      Rein Kadastik <wigry@uninet.ee>
To:        freebsd-bugs@freebsd.org
Subject:   localization and make buildworld
Message-ID:  <431990FA.3070103@uninet.ee>

next in thread | raw e-mail | index | archive | help
Hi,

There is a problem with make buildworld if the LANG is set to 
et_EE.ISO8859-1 (and propbaly to some other locales).

This setting alters the way system treats the alphabet and therefore the 
regular expression a-z does not cover the whole alphabet anymore. The 
reason is that in Estonian alphabet, the z is between s and t so the 
following characters are left out: t, u, v, w, x, y

Therefore the following sed command will not work always: sed -e 
'/^\([a-z_][a-z_]*\) /s//\1 gen_/'

for example "int something" is not transformed to "int gen_something" 
(without double quotes) but "char something" is transformed to "char 
gen_something"

sed fails in three modules: ncurses (lib_gen.c), csh/tcsh (tc.const.h) 
and gdb (init.c)

The solution. Force LANG=C throughout the whole make buildworld process 
so that regex [a-z] will cover any character.

Rein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?431990FA.3070103>