-
Bug
-
Resolution: Done-Errata
-
Normal
-
None
-
glibc-2.39-34.el10
-
No
-
Low
-
-
rhel-pt-c-libs
-
ssg_platform_tools
-
2
-
False
-
False
-
-
No
-
Red Hat Enterprise Linux
-
None
-
Pass
-
Automated
-
Unspecified Release Note Type - Unknown
-
None
This is a clone of issue RHEL-1915 to use for version rhel-10.0
–
Original description:
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
- clones
-
RHEL-1915 glibc: iconv tool does not support in-place conversion of files
-
- Closed
-
- links to
-
RHSA-2024:142463 glibc bug fix and enhancement update