[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gawk 3.1.4: regexp matching broken in multibyte locales
From: |
Andreas Schwab |
Subject: |
gawk 3.1.4: regexp matching broken in multibyte locales |
Date: |
Sun, 19 Sep 2004 23:21:44 +0200 |
The following command prints nothing:
$ printf "ab\n\tb\n" | LC_ALL=de_DE.UTF-8 awk '/^[ \t]/ { print }'
The problem is that dfaexec caches the pointer to the buffer and skips the
multibyte setup if called again with a pointer into the same buffer, which
is of course bogus, since it's the _contents_ that matter.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gawk 3.1.4: regexp matching broken in multibyte locales,
Andreas Schwab <=