Closed haihuayang closed 1 year ago
Please read the documentation on how to use RE/flex if you want to make changes.
The yyleng
value is always backward compatible with Flex to count bytes, not characters. Same as the size()
method. Use wsize()
method to count (wide) characters, i.e. Unicode characters.
Hello,
I made following change to build wc with unicode support, but when I tried some utf8 input, wc does not report correct number of characters, instead it just report the number of bytes, same as without the option '--unicode'. Is there anything I missed?
Thanks,