Subject: gawk works wired in LANG=ko_KR.UTF-8
To: None <tech-pkg@NetBSD.org>
From: Kibum Han <yui@yui.pe.kr>
List: tech-pkg
Date: 01/29/2005 23:40:06
When I did make build-depends-list, some warning messages were showed up.
Here is a simplified version of this problem.

-----------

$ locale
LANG="ko_KR.UTF-8"
LC_CTYPE="ko_KR.UTF-8"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="ko_KR.UTF-8"
LC_ALL=""
$ cat kaka.h
  /************************/
#define FREETYPE_MAJOR 2
$ gawk '/define[\t ]*FREETYPE/ { print $2 }' kaka.h
$ awk '/define[\t ]*FREETYPE/ { print $2 }' kaka.h
FREETYPE_MAJOR
$ LANG=C
$ gawk '/define[\t ]*FREETYPE/ { print $2 }' kaka.h
FREETYPE_MAJOR
$ awk '/define[\t ]*FREETYPE/ { print $2 }' kaka.h
FREETYPE_MAJOR

-------------

It works fine in Linux box, BTW.

Any thoughts?