After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780957 - [PATCH] Preparing gnome-shell for genitive/nominative month names
[PATCH] Preparing gnome-shell for genitive/nominative month names
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: calendar
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-04-05 23:50 UTC by Rafal Luzynski
Modified: 2018-02-08 16:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed solution (not yet working, requires glibc patches) (1.30 KB, patch)
2017-04-05 23:50 UTC, Rafal Luzynski
committed Details | Review

Description Rafal Luzynski 2017-04-05 23:50:05 UTC
Created attachment 349336 [details] [review]
Proposed solution (not yet working, requires glibc patches)

Please don't commit this patch yet, most probably it will not work on your system.

There is a problem in GNOME Shell's calendar as well as in many (most? all?) other applications that they format dates incorrectly in about 20 languages, mostly from eastern Europe. This is not a genuine bug of GNOME, the root cause is deep in glibc: https://sourceware.org/bugzilla/show_bug.cgi?id=10871. So in order for this patch to work correctly the bug in glibc must be fixed first.

This patch is very simple, it just uses %OB format specifier wherever needed. Since there is no conditional compilation in JavaScript we have these ways to make sure this patch works:

- add Requires: glibc>= <insert_some_future_version_here>
- detect whether %OB works at runtime.

The %OB format specifier as used here works in *BSD family of systems including OS X.

Similar bugs: bug 780745, bug 749206.

I'm going to publish patched binaries in my copr repo: https://copr.fedorainfracloud.org/coprs/rluzynski/genitive/