bitwiseworks / libc

LIBC Next (kLIBC fork)
9 stars 4 forks source link

Improve support of %[ scanf modifier #66

Open dmik opened 4 years ago

dmik commented 4 years ago

See POSIX docs for more info. Currently, we miss the following:

Note that %[ in wide char versions is currently is completely disabled within https://github.com/bitwiseworks/libc/commit/d6b474ec1bcda89213b74c43e42ff50bfe3104ce (i.e. [ will be treated as regular char to match). The main problem is that the inp_set function used in _input.c to process this modifier assumes that there are only 256 characters while in wchar_t mode there are 65536. This requires a different technique to track the set rather than a simple char map [256].

Related to #8.