diff options
author | Bruno Haible <bruno@clisp.org> | 2008-05-08 23:15:36 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-05-08 23:21:04 +0200 |
commit | f0ad302ca9b8ec6b22bb3015aebdd4a1fd449ccf (patch) | |
tree | 420b7cc26e98c5dce80c7e06113b09b0012c0bfd /.x-sc_trailing_blank | |
parent | 28c9d4ecff150942d46247076c8456dd79baf178 (diff) | |
download | coreutils-f0ad302ca9b8ec6b22bb3015aebdd4a1fd449ccf.tar.xz |
Speed up "wc -m" and "wc -w" in multibyte case.
* src/wc.c: Include mbchar.h.
(wc): New variable in_shift. Use it to avoid calling mbrtowc for most
ASCII characters. Reported via Jan Engelhardt in
http://bugzilla.novell.com/381873 with discussion here
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13520
Diffstat (limited to '.x-sc_trailing_blank')
0 files changed, 0 insertions, 0 deletions