File: gettext.patch

package info (click to toggle)
openscad 2021.01-8
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 36,012 kB
  • sloc: cpp: 53,199; sh: 4,384; ansic: 4,382; python: 1,813; yacc: 853; javascript: 762; lex: 417; lisp: 163; xml: 127; makefile: 118
file content (23 lines) | stat: -rw-r--r-- 1,246 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -upr gettext-0.19.3.orig/gettext-runtime/intl/langprefs.c gettext-0.19.3/gettext-runtime/intl/langprefs.c
--- gettext-0.19.3.orig/gettext-runtime/intl/langprefs.c	2013-03-07 09:44:37.000000000 +0100
+++ gettext-0.19.3/gettext-runtime/intl/langprefs.c	2016-11-06 12:40:20.000000000 +0100
@@ -269,7 +269,8 @@ _nl_language_preferences_default (void)
                        in the preferences list, arrange for gettext() to
                        return the msgid, and ignore all further elements of
                        the preferences list.  */
-                    if (strcmp (buf, "en") == 0)
+                    if (strcmp (buf, "en") == 0
+                        || strncmp (buf, "en-", 3))
                       break;
                   }
                 else
@@ -297,7 +298,8 @@ _nl_language_preferences_default (void)
                             strcpy (p, buf);
                             p += strlen (buf);
                             *p++ = ':';
-                            if (strcmp (buf, "en") == 0)
+                            if (strcmp (buf, "en") == 0
+                                || strncmp (buf, "en-", 3))
                               break;
                           }
                         else