Subject: Re: gawk works wired in LANG=ko_KR.UTF-8
To: Kibum Han <yui@yui.pe.kr>
From: Min Sik Kim <minskim@NetBSD.org>
List: tech-pkg
Date: 01/29/2005 23:40:20
On Saturday 29 January 2005 08:40 am, Kibum Han wrote:
> 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
>
> -------------

Fixed in gawk-3.1.4nb2.

--
Min Sik Kim