iconv problem with shift_jis encoding

Bug #723708 reported by Alessandro Arzilli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
New
Undecided
Unassigned

Bug Description

2.12.1 version of iconv seems to convert the utf8 character 5C (forward slash) into the shift_jis character 5C but the shift_jis character 5C gets converted into utf8 character 5CA5 (¥).
The mapping 5C/¥ for shift_jis should be the correct one.

This command reproduces the problem:

$ printf "\x5c" | iconv -f utf8 -t sjis | iconv -f sjis -t utf8 | hexdump -C

it should fail, but the sequence "c2 a5" is returned instead.

I attached a C program exposing this problem.

I am using Ubuntu 10.10, libc6 version: 2.12.1-0ubuntu10.2

Revision history for this message
Alessandro Arzilli (alessandro-arzilli) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.