]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Fri, 11 Aug 2000 09:20:36 +0000 (09:20 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 11 Aug 2000 09:20:36 +0000 (09:20 +0000)
old/textutils/ChangeLog

index 1e44dc651c2804a68a4639bc74ae34a38e5bd3b5..54588aafbfc3f37e81d920affeaa70bcfee894be 100644 (file)
@@ -1,7 +1,3 @@
-2000-08-11  Jim Meyering  <meyering@lucent.com>
-
-       * doc/textutils.texi (wc invocation): Update accordingly.
-
 2000-08-10  Paul Eggert  <eggert@twinsun.com>
 
        * doc/textutils.texi: Recommend against the System V syntax
        our own message.
        (cut_fields): Check for I/O error as well as end-of-file
 
+2000-08-06  Bruno Haible  <haible@clisp.cons.org>
+
+       * src/wc.c: Add support for multi-byte locales.
+       (iswprint, mbrtowc, wcwidth): Provide default definitions.
+       (total_bytes): New variable.
+       (print_bytes): New variable.
+       (longopts): Change abbreviation for --chars from 'c' to 'm'.
+       (usage): Update.
+       (write_counts): Add `bytes' argument.
+       (wc): New variables `bytes', `count_bytes', `count_chars',
+       `count_complicated'. The old code determines `bytes', not `chars'.
+       New case for MB_CUR_MAX > 1. A non-printable non-space character does
+       not increment the line position or start a word. Update `total_bytes'.
+       (main): Initialize `print_bytes' and `total_bytes' to 0. Accept 'm'
+       option. Pass `total_bytes' to write_counts.
+       * doc/textutils.texi (wc invocation): Update accordingly.
+
 2000-08-06  Bruno Haible  <haible@clisp.cons.org>
 
        * src/head.c (head): Call write_header here.