This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug localedata/22371] New: U+FFE2 and U+FFE4, iconv does not convert to HALFWIDTH(EUC-JISX0213)


https://sourceware.org/bugzilla/show_bug.cgi?id=22371

            Bug ID: 22371
           Summary: U+FFE2 and U+FFE4, iconv does not convert to
                    HALFWIDTH(EUC-JISX0213)
           Product: glibc
           Version: 2.26
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: localedata
          Assignee: unassigned at sourceware dot org
          Reporter: nakajima.akira at nttcom dot co.jp
                CC: libc-locales at sourceware dot org
  Target Milestone: ---

When converting to EUC-JISX0213,
iconv does not convert 'FULLWIDTH NOT SIGN' (U+FFE2) to 'NOT SIGN' (U+00AC).

# printf '\xef\xbf\xa2' | iconv -c -f UTF-8 -t EUC-JISX0213 | od -tx1
0000000


Nearby characters are converted to FULLWIDTH to HALFWIDTH.

# printf '\xef\xbf\xa3' | iconv -c -f UTF-8 -t EUC-JISX0213 | od -tx1
0000000 a1 b1


nkf converts to 'a2 cc'.

# printf '\xef\xbf\xa2' | nkf --ic=UTF-8 --oc=EUC-JISX0213 | od -tx1
0000000 a2 cc

'a2 cc' is 'NOT SIGN' of HALFWIDTH in EUC-JISX0213.
 (Same character of FULLWIDTH does not exist in EUC-JISX0213).


========================================
As similarly,
iconv does not convert 'FULLWIDTH BROKEN BAR' (U+FFE4)  to 'BROKEN BAR'
(U+00A6).

# printf '\xef\xbf\xa4' | iconv -c -f UTF-8 -t EUC-JISX0213 | od -tx1
0000000

# printf '\xef\xbf\xa4' | unorm --normalization=nfkd | od -tx1
0000000 c2 a6

HALFWIDTH (U+00A6) is exists in EUC-JISX0213 at 'a9 a5'.
http://charset.uic.jp/show/eucjisx0213/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]