#403124 fgetws chokes on input chars > 0x80 in C locale

Package:
libc6
Source:
glibc
Description:
GNU C Library: Shared libraries
Submitter:
Dan Jacobson
Date:
2019-10-05 08:03:06 UTC
Severity:
normal
#403124#5
Date:
2006-12-14 17:25:08 UTC
From:
To:
Add a switch to rev to make it just think in bytes.
$ perl -we 'for(0..0xFF){print chr}'|rev

rev: stdin: Invalid or incomplete multibyte or wide character

Also perhaps remove the \n in the error message.

#403124#10
Date:
2012-02-23 14:34:07 UTC
From:
To:
Dear Maintainer,

'rev' reports the "Invalid or incomplete multibyte or wide character"
error whenever if finds a byte above 127 in the C locale (LC_ALL=C).
I would expect it to treat one byte as one character in this situation,
as does 'sort', for instance.

Thanks in advance!

#403124#15
Date:
2013-10-31 18:02:19 UTC
From:
To:
retitle 403124 fgetws chokes on input chars > 0x80 in C locale
reassign 403124 libc6
thanks

Looks like this is a bug in libc since it is the fgetws call that is
trying and failing to convert the input chars.