Bug 21084 - charmaps/IBM858: new codepage
Summary: charmaps/IBM858: new codepage
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: 2.27
Assignee: Mike FABIAN
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-25 12:38 UTC by Florian Weimer
Modified: 2017-09-14 14:15 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Weimer 2017-01-25 12:38:15 UTC
This code page is IBM850 with the addition of the Euro sign.  Apparently, it has some real-world use.
Comment 1 Florian Weimer 2017-01-25 12:55:35 UTC
Reference: http://www-01.ibm.com/software/globalization/cp/cp00858.html
Comment 2 cvs-commit@gcc.gnu.org 2017-09-14 14:11:34 UTC
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  799c8d6905433ad56f26ccab4855b36f1d1ddbfc (commit)
      from  fcc82c06dc77bee380c3232827827e995064da4c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=799c8d6905433ad56f26ccab4855b36f1d1ddbfc

commit 799c8d6905433ad56f26ccab4855b36f1d1ddbfc
Author: Mike FABIAN <mfabian@redhat.com>
Date:   Thu Sep 7 15:28:28 2017 +0200

    Add new codepage charmaps/IBM858 [BZ #21084]
    
    This code page is identical to code page 850 except that X'D5'
    has been changed from LI61 (dotless i) to SC20 (euro symbol).
    
    The code points from /x01 to /x1f in the /localedata/charmaps/IBM858
    file have the same mapping as those in localedata/charmaps/ANSI_X3.4-1968.
    That means they disagree with with
    
    ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP00858.txt
    
    in that range.
    For example, localedata/charmaps/IBM858 and localedata/charmaps/ANSI_X3.4-1968 have:
    
       “<U0001>     /x01         START OF HEADING (SOH)”
    
    whereas CP00858.txt has:
    
       “01 SS000000        Smiling Face”
    
    That means that CP00858.txt is not really ASCII-compatible and to make
    it ASCII-compatible we deviate fro CP00858.txt in the code points from /x01
    to /x1f.
    
    	[BZ #21084]
    	* benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
    	* iconvdata/Makefile: Add IBM858.
    	* iconvdata/gconv-modules: Add IBM858.
    	* iconvdata/ibm858.c: New file.
    	* iconvdata/tst-tables.sh: Add IBM858
    	* localedata/charmaps/IBM858: New file.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                      |   10 ++++++++++
 benchtests/strcoll-inputs/filelist#en_US.UTF-8 |    2 ++
 iconvdata/Makefile                             |   16 ++++++++--------
 iconvdata/gconv-modules                        |    7 +++++++
 iconvdata/{inis.c => ibm858.c}                 |    9 ++++-----
 iconvdata/tst-tables.sh                        |    1 +
 localedata/charmaps/{IBM850 => IBM858}         |   23 ++++++++++++++++++-----
 7 files changed, 50 insertions(+), 18 deletions(-)
 copy iconvdata/{inis.c => ibm858.c} (80%)
 copy localedata/charmaps/{IBM850 => IBM858} (93%)
Comment 3 Mike FABIAN 2017-09-14 14:15:01 UTC
FIXED.