Commit a49209d2 authored by Corinna Vinschen's avatar Corinna Vinschen
Browse files

newlib: vf[w]scanf: Fix conversion multibyte <-> wchar_t



* vfscanf: per POSIX, if the target type is wchar_t, the width is
  counted in (multibyte) characters, not in bytes.

* vfscanf: Handle UTF-8 multibyte sequences converted to surrogate
  pairs on UTF-16 systems.

* vfwscanf: Don't count high surrogates in input against field width
  counting.  Per POSIX, input is

Signed-off-by: default avatarCorinna Vinschen <corinna@vinschen.de>
parent 9638c075
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment