aboutsummaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/eds/evolution-data-server/0005-Use-LC_MESSAGES-for-address-localization-when-LC_ADD.patch
blob: 55ab5a7fca2ca5a4ba991a79ac1eb622ddb8e535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 95425206e7317e59b7ca06d7f838ad357cdd200c Mon Sep 17 00:00:00 2001
From: Piotr Tworek <tworaz@tworaz.net>
Date: Wed, 14 Aug 2019 00:31:54 +0200
Subject: [PATCH 5/7] Use LC_MESSAGES for address localization when LC_ADDRESS
 is not available.

Musl does not define LC_ADDRESS unfortunately.

Upstream-Status: Inappropriate [musl specific]

Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
---
 src/addressbook/libebook-contacts/e-phone-number-private.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/addressbook/libebook-contacts/e-phone-number-private.cpp b/src/addressbook/libebook-contacts/e-phone-number-private.cpp
index 4c5aebb..9abcebd 100644
--- a/src/addressbook/libebook-contacts/e-phone-number-private.cpp
+++ b/src/addressbook/libebook-contacts/e-phone-number-private.cpp
@@ -36,6 +36,10 @@
 #include <phonenumbers/logger.h>
 #include <phonenumbers/phonenumberutil.h>
 
+#ifndef LC_ADDRESS
+#define LC_ADDRESS LC_MESSAGES
+#endif
+
 using i18n::phonenumbers::PhoneNumber;
 using i18n::phonenumbers::PhoneNumberUtil;
 
-- 
2.21.0