Bug 68 - [PATCH] Fix for hy_AM locale
Summary: [PATCH] Fix for hy_AM locale
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Petter Reinholdtsen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-10 03:13 UTC by Ani
Modified: 2019-04-10 12:23 UTC (History)
2 users (show)

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


Attachments
fix 2 FIXMES in hy_AM locale (338 bytes, patch)
2004-03-10 03:13 UTC, Ani
Details | Diff
revised version of the patch (384 bytes, patch)
2004-03-10 14:16 UTC, Ani
Details | Diff
final version of the patch (1.32 KB, patch)
2004-04-08 07:05 UTC, Ani
Details | Diff
adds ordering information into to iso14651_t1 (1000 bytes, patch)
2004-04-08 07:08 UTC, Ani
Details | Diff
translated LC_NAME section and updated Pablo's email (1.45 KB, patch)
2004-05-15 15:23 UTC, Ani
Details | Diff
fixed country_car (1.46 KB, patch)
2004-10-20 15:27 UTC, Ani
Details | Diff
fixes %Charset: and missing quotes (1.66 KB, patch)
2005-01-20 07:08 UTC, Ani
Details | Diff
fix yesexpr and noexpr (1.79 KB, patch)
2005-01-21 03:51 UTC, Ani
Details | Diff
Wrong bug number, sorry, this patch is for BZ58. (597 bytes, patch)
2005-05-10 20:11 UTC, Denis Barbier
Details | Diff
Armenian locale from Ubuntu Dapper 6.06 (3.41 KB, text/plain)
2006-05-01 21:17 UTC, Ani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ani 2004-03-10 03:13:05 UTC
this patch fixes country_name and lang_name for armenian hy_AM locale
Comment 1 Ani 2004-03-10 03:13:55 UTC
Created attachment 26 [details]
fix 2 FIXMES in hy_AM locale
Comment 2 Petter Reinholdtsen 2004-03-10 10:11:48 UTC
I've requested comments from Pablo Saratxaga and Eugene Sevinian,
which have worked on this locale earlier.
Comment 3 Ani 2004-03-10 14:16:35 UTC
Created attachment 27 [details]
revised version of the patch

this patch fixes LC_NAME FIXME and uses Eastern spelling for lang_name since
that's the spelling that is being used in Armenia
Comment 4 Pablo Saratxaga 2004-03-10 17:09:08 UTC
As I've been requested advice, here it is.

I've been involved in the first version of the file (written from input of
people in Armenia); but I don't speak Armenian myself; the proposed patch looks
ok for me.

(note however that the hy_AM file still doesn't work, due to the fact that
localedef isn't able to handle the definition of a new script after the copy
"iso14651_t1")
Comment 5 Petter Reinholdtsen 2004-03-14 10:49:28 UTC
The email to Eugene Sevinian bounced with "Connection timed
out: retry timeout exceeded", so I guess is it unlikely to get a
comment from him at this time.
Comment 6 Ani 2004-04-08 07:05:48 UTC
Created attachment 48 [details]
final version of the patch

this is the final version of the patch.hy_AM
It updates the obsolete web site address and removes all the ordering
information from hy_AM since it has to be moved to iso14651_t1 ( see comment
#4)
this patch has to be applied against libc/localedata/locales/hy_AM
Comment 7 Ani 2004-04-08 07:08:17 UTC
Created attachment 49 [details]
adds ordering information into to iso14651_t1

this patch simply adds all the ordering information that was removed from hy_AM
to  iso14651_t1
It has to be applied against libc/localedata/locales/iso14651_t1 file
Comment 8 Ani 2004-05-15 15:23:32 UTC
Created attachment 79 [details]
translated LC_NAME section and updated Pablo's email
Comment 9 Ani 2004-10-20 15:27:28 UTC
Created attachment 231 [details]
fixed country_car
Comment 10 Petter Reinholdtsen 2005-01-14 17:25:46 UTC
The hy_AM patch look good to me.  The collate patch to iso14651_t1
is a bit new to me.  I'm not sure how the iso14651_t1 content
are generated, and do not know if it is OK to append it with the
proposed patch.

There are some minor problems with the locale.  Testing it with
http://www.student.uit.no/~pere/linux/glibc/check-locale will
at the moment show

  - Missing '% Charset: <charset>' info
  - Missing quotes around category standard refs
  - yesexpr and noexpr have '.*'

It would be nice to have these problems fixed as well, but it isn't
too important.
Comment 11 Ani 2005-01-20 07:08:51 UTC
Created attachment 380 [details]
fixes %Charset: and missing quotes

this patch fixes:
- Missing '% Charset: <charset>' info
- Missing quotes around category standard refs
Comment 12 Ani 2005-01-20 07:58:43 UTC
Comment on attachment 49 [details]
adds ordering information into to iso14651_t1

this patch is actually not necessary
Comment 13 Ani 2005-01-21 03:51:56 UTC
Created attachment 383 [details]
fix yesexpr and noexpr

this patch also fixes yesexpr and noexpr ".*" problem.
the only warning that check-locale reports are warnings about wrong section
orders. Do you want me to fix those warnings too ?
Comment 14 Petter Reinholdtsen 2005-01-21 06:38:55 UTC
No, you do not have to change the order.  That check is most important
for new locales.  It is better for existing locales to keep
their order, to reduce the cvs diff.
Comment 15 Denis Barbier 2005-05-10 20:11:19 UTC
Created attachment 481 [details]
Wrong bug number, sorry, this patch is for BZ58.
Comment 16 Ulrich Drepper 2005-10-15 00:53:51 UTC
iso14651_t1 will not be modified.  Since the patch depends on this I'll not
apply it.
Comment 17 Ani 2005-10-15 02:24:43 UTC
Actually, this patch doesn't depend on iso14651_t1.

There is only one patch from comment #13 (id=383) that should be applied to
libc/localedata/locales/hy_AM after which the Armenian locale can be easily
compiled by running:

$ localedef -f UTF-8 -i hy_AM hy
Comment 18 Ulrich Drepper 2005-10-16 08:14:40 UTC
If I would use the patch from comment #13 then the collation handling would be
just as in iso14651_t1 which, according to comment #7, is not sufficient.
Comment 19 Ani 2005-10-16 21:33:04 UTC
Hi Ulrich,

If you look at patch from comment #7 you will notice that Armenian letters in
Unicode are already ordered correctly. (Capitals go from <U0531>-<U0556> and
small letters go from <U0561>-<U0586>).
Since Unicode already has the correct ordering isn't the default behavior
already correct, which would make patch from comment #7 unnecessary?

If not, what do you suggest to get the Armenian locale working?
Comment 20 Dwayne Grant McConnell 2006-02-21 16:51:25 UTC
This one appears to still be under discussion.
Comment 21 Ulrich Drepper 2006-05-01 17:34:38 UTC
I applied the last patch.
Comment 22 Ani 2006-05-01 21:15:58 UTC
Hi Ulrich,
I just looked at Ubuntu 6.06 which includes the Armenian locale and I noticed 2
things:
1. It seems that they have all the fixes from my current patch + some extra
patches like translit_combining
2. They didn't remove the collation from hy_AM like I did, which is also nice.

I think we should consider using Ubuntu's changes instead of using my patch.
I am attaching Ubuntu's hy_AM file.

Comment 23 Ani 2006-05-01 21:17:03 UTC
Created attachment 994 [details]
Armenian locale from Ubuntu Dapper 6.06
Comment 24 Ulrich Drepper 2006-05-01 21:52:19 UTC
Why?  First you tell me the changes are correct, then that they are not.  I'm
this -><- close to rip the whole thing out and remove it forever.  What is the
problem with the source now in CVS?  Explain is detail, and fast.
Comment 25 Ani 2006-05-01 23:20:47 UTC
There is nothing wrong with the current CVS version.
What I was trying to say is that after doing a diff between the current CVS
version and Ubuntu version I found 2 differences, which are:
1. They added a translit section for Armenian -> English transliteration and I
can submit that as a separate self-contained patch.
2. They didn't remove the collating symbols, which means that they fixed the
localedef parser. It is _not_ necessary because unicode ordering is correct. I
am goint to write an email to Pablo now and ask him why did he add the collating
symbols in the first place.
So this bug can be closed now, and I'll submit further improvements as a
separate bug.