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 09:36:13
On Sun, 26 Aug 2007, Iain Hibbert wrote:
> On Sat, 25 Aug 2007, Thomas Klausner wrote:
>
> > On the attached file, wc(1) on 4.99.30/amd64 reports "invalid byte
> > sequence" quite often.
>
> perhaps you checked, but on 4.99.25/i386 it does not report that:
>
> galant: {1} wc test.mp3
> 1 7 2048 test.mp3
>
> so, it would seem that mbrtowc() is at fault somehow..?
I see that "The behaviour of mbrtowc() is affected by the LC_CTYPE
category of the current locale" .. do you have any locale settings?
galant: {1} locale
LANG=""
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=""
iain