[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wc and locale ?

From: Petter Reinholdtsen
Subject: wc and locale ?
Date: Tue, 31 Jul 2001 21:58:45 +0200

Is wc handling different character encodings?  I tried this on a file
with UTF-8 encoding, and it seem to ignore the charcter set:

  % LC_CTYPE=ISO-8859-1 wc -c quanta.po
     41717 quanta.po
  % LC_CTYPE=UTF-8 wc -c quanta.po
     41717 quanta.po

It would be very nice if wc counted characters, not bytes.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]