<feed xmlns='http://www.w3.org/2005/Atom'>
<title>glibc/localedata, branch master</title>
<subtitle>Fork of glibc for development</subtitle>
<id>https://git.zx2c4.com/glibc/atom/localedata?h=master</id>
<link rel='self' href='https://git.zx2c4.com/glibc/atom/localedata?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/'/>
<updated>2024-06-27T14:49:26Z</updated>
<entry>
<title>tests-mbwc: Silence gcc 14 -Werror=format-overflow=</title>
<updated>2024-06-27T14:49:26Z</updated>
<author>
<name>Stefan Liebler</name>
<email>stli@linux.ibm.com</email>
</author>
<published>2024-06-27T11:42:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=c0f21e073d45670cb54811b07fce8e612a91f107'/>
<id>urn:sha1:c0f21e073d45670cb54811b07fce8e612a91f107</id>
<content type='text'>
With gcc 14, I get this warning/werror when building the localedata tests:
tests-mbwc/tsp_common.c: In function ‘result.constprop.isra’:
tests-mbwc/tsp_common.c:55:43: error: ‘%s’ directive writing up to 92 bytes into a region of size between 0 and 114 [-Werror=format-overflow=]
   55 |   sprintf (result_rec, "%s:%s:%d:%d:%d:%c:%s\n", func, loc, rec_no, seq_no,
      |                                           ^~
In file included from ../include/bits/stdio2.h:1,
                 from ../libio/stdio.h:980,
                 from ../include/stdio.h:14,
                 from tests-mbwc/tsp_common.c:10:
In function ‘sprintf’,
    inlined from ‘result.constprop.isra’ at tests-mbwc/tsp_common.c:55:3:
../libio/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 20 and 234 bytes into a destination of size 132
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

This patch now gets rid of using sprintf and the result_rec buffer and just
prints to fp directly.
</content>
</entry>
<entry>
<title>Define ISO 639-3 "ltg" (Latgalian) and add ltg_LV locale</title>
<updated>2024-06-17T08:53:16Z</updated>
<author>
<name>Mike FABIAN</name>
<email>mfabian@redhat.com</email>
</author>
<published>2024-06-10T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=3ea79f50853afcbe17d6a4e2537e1bd5a2d17e7d'/>
<id>urn:sha1:3ea79f50853afcbe17d6a4e2537e1bd5a2d17e7d</id>
<content type='text'>
Resolves: BZ # 31411

References:
https://iso639-3.sil.org/code/ltg
https://en.wikipedia.org/wiki/Latgalian_language
https://github.com/unicode-org/cldr/blob/main/common/main/ltg.xml
</content>
</entry>
<entry>
<title>localedata: Lowercase day and abday in cs_CZ</title>
<updated>2024-06-11T08:33:54Z</updated>
<author>
<name>Mike FABIAN</name>
<email>mfabian@redhat.com</email>
</author>
<published>2024-06-10T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=10733d6a72381a54644e16094c39ca7540660a59'/>
<id>urn:sha1:10733d6a72381a54644e16094c39ca7540660a59</id>
<content type='text'>
Resolves: BZ # 25119

Also to sync with CLDR
</content>
</entry>
<entry>
<title>localedata: add new locales scn_IT</title>
<updated>2024-06-07T13:45:18Z</updated>
<author>
<name>David Paleino</name>
<email>dapal@debian.org</email>
</author>
<published>2024-05-15T18:39:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=eb370158794d7c64740a257ab2246ab46b90306a'/>
<id>urn:sha1:eb370158794d7c64740a257ab2246ab46b90306a</id>
<content type='text'>
Signed-off-by: David Paleino &lt;dapal@debian.org&gt;
</content>
</entry>
<entry>
<title>localedata: cv_RU: update translation</title>
<updated>2024-05-23T12:39:35Z</updated>
<author>
<name>Mike FABIAN</name>
<email>mfabian@redhat.com</email>
</author>
<published>2024-05-22T15:42:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=28bf4783d9dfe6174de0fc90681da444a028e2a3'/>
<id>urn:sha1:28bf4783d9dfe6174de0fc90681da444a028e2a3</id>
<content type='text'>
Resolves: BZ # 21271
</content>
</entry>
<entry>
<title>localedata: Fix several issues with the set of characters considered 0-width [BZ #31370]</title>
<updated>2024-05-15T12:31:06Z</updated>
<author>
<name>Jules Bertholet</name>
<email>julesbertholet@quoi.xyz</email>
</author>
<published>2024-02-23T20:54:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=25c9c3789ecf35a5dc303261abcef7993112017d'/>
<id>urn:sha1:25c9c3789ecf35a5dc303261abcef7993112017d</id>
<content type='text'>
= `Default_Ignorable_Code_Point`s should have width 0 =

Unicode specifies (https://www.unicode.org/faq/unsup_char.html#3) that characters
with the `Default_Ignorable_Code_Point` property

&gt; should be rendered as completely invisible (and non advancing, i.e. “zero width”),
if not explicitly supported in rendering.

Hence, `wcwidth()` should give them all a width of 0, with two exceptions:

- the soft hyphen (U+00AD SOFT HYPHEN) is assigned width 1 by longstanding precedent
- U+115F HANGUL CHOSEONG FILLER needs a carveout
  due to the unique behavior of the conjoining Korean jamo characters.
  One composed Hangul "syllable block" like 퓛
  is made up of two to three individual component characters, or "jamo".
  These are all assigned an `East_Asian_Width` of `Wide`
  by Unicode, which would normally mean they would all be assigned
  width 2 by glibc; a combination of (leading choseong jamo) +
  (medial jungseong jamo) + (trailing jongseong jamo) would then have width 2 + 2 + 2 = 6.
  However, glibc (and other wcwidth implementations) special-cases jungseong and jongseong,
  assigning them all width 0,
  to ensure that the complete block has width 2 + 0 + 0 = 2 as it should.
  U+115F is meant for use in syllable blocks
  that are intentionally missing a leading jamo;
  it must be assigned a width of 2 even though it has no visible display
  to ensure that the complete block has width 2.

However, `wcwidth()` currently (before this patch)
incorrectly assigns non-zero width to
U+3164 HANGUL FILLER and U+FFA0 HALFWIDTH HANGUL FILLER;
this commit fixes that.

Unicode spec references:
- Hangul:  §3.12 https://www.unicode.org/versions/Unicode15.0.0/ch03.pdf#G24646 and
  §18.6 https://www.unicode.org/versions/Unicode15.0.0/ch18.pdf#G31028
- `Default_Ignorable_Code_Point`: §5.21 https://www.unicode.org/versions/Unicode15.0.0/ch05.pdf#G40095.

= Non-`Default_Ignorable_Code_Point` format controls should be visible =

The Unicode Standard, §5.21 - Characters Ignored for Display
(https://www.unicode.org/versions/Unicode15.0.0/ch05.pdf#G40095)
says the following:

&gt; A small number of format characters (General_Category = Cf )
&gt; are also not given the Default_Ignorable_Code_Point property.
&gt; This may surprise implementers, who often assume
&gt; that all format characters are generally ignored in fallback display.
&gt; The exact list of these exceptional format characters
&gt; can be found in the Unicode Character Database.
&gt; There are, however, three important sets of such format characters to note:
&gt;
&gt; - prepended concatenation marks
&gt; - interlinear annotation characters
&gt; - Egyptian hieroglyph format controls
&gt;
&gt; The prepended concatenation marks always have a visible display.
&gt; See “Prepended Concatenation Marks” in [*Section 23.2, Layout Controls*](https://www.unicode.org/versions/Unicode15.1.0/ch23.pdf#M9.35858.HeadingBreak.132.Layout.Controls)
&gt; for more discussion of the use and display of these signs.
&gt;
&gt; The other two notable sets of format characters that exceptionally are not ignored
&gt; in fallback display consist of the interlinear annotation characters,
&gt; U+FFF9 INTERLINEAR ANNOTATION ANCHOR through
&gt; U+FFFB INTERLINEAR ANNOTATION TERMINATOR,
&gt; and the Egyptian hieroglyph format controls,
&gt; U+13430 EGYPTIAN HIEROGLYPH VERTICAL JOINER through
&gt; U+1343F EGYPTIAN HIEROGLYPH END WALLED ENCLOSURE.
&gt; These characters should have a visible glyph display for fallback rendering,
&gt; because if they are not displayed,
&gt; it is too easy to misread the resulting displayed text.
&gt; See “Annotation Characters” in [*Section 23.8, Specials*](https://www.unicode.org/versions/Unicode15.1.0/ch23.pdf#M9.21335.Heading.133.Specials),
&gt; as well as [*Section 11.4, Egyptian Hieroglyphs*](https://www.unicode.org/versions/Unicode15.1.0/ch11.pdf#M9.73291.Heading.1418.Egyptian.Hieroglyphs)
&gt; for more discussion of the use and display of these characters.

glibc currently correctly assigns non-zero width to the prepended concatenation marks,
but it incorrectly gives zero width to the interlinear annotation characters
(which a generic terminal cannot interpret)
and the Egyptian hieroglyph format controls
(which are not widely supported in rendering implementations at present).
This commit fixes both these issues as well.

= Derive Hangul syllable type from Unicode data =

Previosuly, the jungseong and jongseong jamo ranges
were hard-coded into the script. With this commit, they are instead parsed
from the HangulSyllableType.txt data file published by Unicode.
This does not affect the end result.

Signed-off-by: Jules Bertholet &lt;julesbertholet@quoi.xyz&gt;
</content>
</entry>
<entry>
<title>localedata: fix weekdays in mdf_RU locale</title>
<updated>2024-05-08T12:27:40Z</updated>
<author>
<name>Mike FABIAN</name>
<email>mfabian@redhat.com</email>
</author>
<published>2024-05-08T07:43:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=88dca8d5f85c6ad77f6d754f95cc54e9b905747f'/>
<id>urn:sha1:88dca8d5f85c6ad77f6d754f95cc54e9b905747f</id>
<content type='text'>
From Кирилл Изместьев &lt;izmestevks@basealt.ru&gt;,
see: https://sourceware.org/bugzilla/show_bug.cgi?id=31530#c6
and the following comments.
</content>
</entry>
<entry>
<title>localedata: add mdf_RU locale</title>
<updated>2024-05-08T12:27:40Z</updated>
<author>
<name>Mike FABIAN</name>
<email>mfabian@redhat.com</email>
</author>
<published>2024-05-07T09:12:38Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=79fe4a0fa07d0fff98888965f47842251f554dd4'/>
<id>urn:sha1:79fe4a0fa07d0fff98888965f47842251f554dd4</id>
<content type='text'>
Resolves: BZ # 31530
</content>
</entry>
<entry>
<title>locale: Handle loading a missing locale twice (Bug 14247)</title>
<updated>2024-04-22T20:03:00Z</updated>
<author>
<name>Carlos O'Donell</name>
<email>carlos@redhat.com</email>
</author>
<published>2024-04-22T12:16:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=684fbab755e727a8c15f8b621648d66694cd1f53'/>
<id>urn:sha1:684fbab755e727a8c15f8b621648d66694cd1f53</id>
<content type='text'>
Delay setting file-&gt;decided until the data has been successfully loaded
by _nl_load_locale().  If the function fails to load the data then we
must return and error and leave decided untouched to allow the caller to
attempt to load the data again at a later time.  We should not set
decided to 1 early in the function since doing so may prevent attempting
to load it again. We want to try loading it again because that allows an
open to fail and set errno correctly.

On the other side of this problem is that if we are called again with
the same inputs we will fetch the cached version of the object and carry
out no open syscalls and that fails to set errno so we must set errno to
ENOENT in that case.  There is a second code path that has to be handled
where the name of the locale matches but the codeset doesn't match.

These changes ensure that errno is correctly set on failure in all the
return paths in _nl_find_locale().

Adds tst-locale-loadlocale to cover the bug.

No regressions on x86_64.

Co-authored-by: Jeff Law &lt;law@redhat.com&gt;
Reviewed-by: Adhemerval Zanella  &lt;adhemerval.zanella@linaro.org&gt;
</content>
</entry>
<entry>
<title>Update SHARED-FILES and license for Unicode 15.1.0.</title>
<updated>2024-02-27T13:27:14Z</updated>
<author>
<name>Carlos O'Donell</name>
<email>carlos@redhat.com</email>
</author>
<published>2024-02-21T14:33:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/glibc/commit/?id=db50990ddb0c446e137c5addb3e21bcf8f69a040'/>
<id>urn:sha1:db50990ddb0c446e137c5addb3e21bcf8f69a040</id>
<content type='text'>
In 2018 the license changed to use Unicode-3.0 license.
The Unicode License is a permissive MIT type of license.
Automation is updated to fetch the correct license file to
keep it in sync with the data files.

The new license is OSI approved and has an SPDX identifer:
https://opensource.org/license/unicode-license-v3
https://spdx.org/licenses/Unicode-3.0.html

The FSF and the GNU Project have been contacted to update
the license list for this license:
https://www.gnu.org/licenses/license-list.html
</content>
</entry>
</feed>
