Subject: Re: wc: filename: invalid byte sequence
To: Thomas Klausner <wiz@NetBSD.org>
From: Iain Hibbert <plunky@rya-online.net>
List: tech-userlevel
Date: 08/26/2007 13:39:09
On Sun, 26 Aug 2007, Thomas Klausner wrote:

> On Sun, Aug 26, 2007 at 09:36:13AM +0100, Iain Hibbert wrote:
> > I see that "The behaviour of mbrtowc() is affected by the LC_CTYPE
> > category of the current locale" .. do you have any locale settings?
>
> Actually, yes:
> LANG=""
> LC_CTYPE="de_DE.UTF-8"
> LC_COLLATE="C"
> LC_TIME="C"
> LC_NUMERIC="C"
> LC_MONETARY="C"
> LC_MESSAGES="C"
> LC_ALL=""

makes no difference on i386:

galant: {1} setenv LC_CTYPE "de_DE.UTF-8"
galant: {2} locale
LANG=""
LC_CTYPE="de_DE.UTF-8"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=""
galant: {3} wc test.mp3
       1       7    2048 test.mp3

iain