-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-9.2.0
-
glibc-2.34-143.el9
-
None
-
Moderate
-
-
2
-
rhel-sst-pt-libraries
-
ssg_platform_tools
-
3
-
False
-
Yes
-
Red Hat Enterprise Linux
-
SST PT Libraries Sprint 11, SST PT Libraries Sprint 13
-
Requested
-
None
-
Bug Fix
-
-
Proposed
-
-
x86_64
-
None
What were you trying to do that didn't work?
Convert a file from ISO-8859-1 to UTF-8
Please provide the package NVR for which bug is seen:
glibc-common-2.34-60.el9.x86_64
How reproducible:
in house and by customer
Steps to reproduce
Test environment:
Release: Red Hat Enterprise Linux release 9.2 (Plow)
Kernel: 5.14.0-284.25.1.el9_2.x86_64
IP Address: 10.1.183.219
glibc-common: glibc-common-2.34-60.el9.x86_64
locale: en.US.ISO-8859-1
Below 32K:
[root@test ~]# tr -dc '[:alnum:] \n' </dev/urandom | head -c 31000 > test.txt ; stat -c '%s' test.txt ; iconv -f ISO-8859-1 -t UTF-8 test.txt -o test.txt ; stat -c '%s' test.txt
31000
48258
32K and above:
[root@test ~]# tr -dc '[:alnum:] \n' </dev/urandom | head -c 32000 > test.txt ; stat -c '%s' test.txt ; iconv -f ISO-8859-1 -t UTF-8 test.txt -o test.txt ; stat -c '%s' test.txt
32000
49800
[root@test ~]# tr -dc '[:alnum:] \n' </dev/urandom | head -c 32001 > test.txt ; stat -c '%s' test.txt ; iconv -f ISO-8859-1 -t UTF-8 test.txt -o test.txt ; stat -c '%s' test.txt
32001
50012
[root@test ~]# tr -dc '[:alnum:] \n' </dev/urandom | head -c 32002 > test.txt ; stat -c '%s' test.txt ; iconv -f ISO-8859-1 -t UTF-8 test.txt -o test.txt ; stat -c '%s' test.txt
32002
49938
[root@test ~]# tr -dc '[:alnum:] \n' </dev/urandom | head -c 32003 > test.txt ; stat -c '%s' test.txt ; iconv -f ISO-8859-1 -t UTF-8 test.txt -o test.txt ; stat -c '%s' test.txt
32003
Bus error (core dumped)
28672
Expected results
File is converted
Actual results
core dump
- links to