public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Carlos O'Donell <carlos@redhat.com>
To: Florian Weimer <fweimer@redhat.com>, libc-alpha@sourceware.org
Subject: Re: [PATCH] localedata: Make IBM273 compatible with ISO-8859-1 [BZ #23290]
Date: Thu, 14 Jun 2018 19:37:00 -0000	[thread overview]
Message-ID: <4edcbf1e-d2e0-7a60-800a-ca0a2a6e687d@redhat.com> (raw)
In-Reply-To: <20180614191115.62A754016AD37@oldenburg.str.redhat.com>

On 06/14/2018 03:11 PM, Florian Weimer wrote:
> 2018-06-14  Florian Weimer  <fweimer@redhat.com>
> 
> 	[BZ #23290]
> 	* localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
> 	that the result stays within the ISO-8859-1 range.
> 	* iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
> 	characters are defined in IBM273.
OK with s/OVERLINE/MACRON/g in the charmap.

I reviewed:
ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP00273.pdf
just to see if macron/overline was expected and it was. I expect what you see
there, being slightly narrower than fullwidth, is a macron.

My review shows that the *intent* of IBM273 was to stay within Latin1, and
using "OVERLINE" <U203E> goes against that intent when MACRON is fine.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>

> diff --git a/iconvdata/ibm273.c b/iconvdata/ibm273.c
> index c303cf306d..132c06f0eb 100644
> --- a/iconvdata/ibm273.c
> +++ b/iconvdata/ibm273.c
> @@ -23,6 +23,6 @@
>  #define TABLES <ibm273.h>
>  
>  #define CHARSET_NAME	"IBM273//"
> -#define HAS_HOLES	1	/* Not all 256 character are defined.  */
> +#define HAS_HOLES	0
>  
>  #include <8bit-gap.c>
> diff --git a/localedata/charmaps/IBM273 b/localedata/charmaps/IBM273
> index c3f70e2a6f..233d0db57d 100644
> --- a/localedata/charmaps/IBM273
> +++ b/localedata/charmaps/IBM273
> @@ -194,7 +194,7 @@ CHARMAP
>  <U00BE>     /xb9         VULGAR FRACTION THREE QUARTERS
>  <U00AC>     /xba         NOT SIGN
>  <U007C>     /xbb         VERTICAL LINE
> -<U203E>     /xbc         OVERLINE
> +<U00AF>     /xbc         OVERLINE

This is no longer OVERLINE but MACRON, which is in theory
slightly narrower, but still fits the description of the
codepage.

>  <U00A8>     /xbd         DIAERESIS
>  <U00B4>     /xbe         ACUTE ACCENT
>  <U00D7>     /xbf         MULTIPLICATION SIGN
> 

c.

      reply	other threads:[~2018-06-14 19:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-14 19:11 Florian Weimer
2018-06-14 19:37 ` Carlos O'Donell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4edcbf1e-d2e0-7a60-800a-ca0a2a6e687d@redhat.com \
    --to=carlos@redhat.com \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).