Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 xwax (1.7-1ubuntu0.1~18.10) cosmic; urgency=medium
 .
   * d/p/02_decimal_number_parsing.patch: apply f3af6a6 from upstream to
     fix parsing of decimal numbers.
Author: Daniel Holbach <daniel.holbach@ubuntu.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2018-12-02

--- xwax-1.7.orig/xwax.c
+++ xwax-1.7/xwax.c
@@ -217,6 +217,14 @@ int main(int argc, char *argv[])
         return -1;
     }
 
+    /* Explicit formatting for numbers; parsing and printing.  Match
+     * the user's expectations, and the documentation */
+
+    if (setlocale(LC_NUMERIC, "POSIX") == NULL) {
+        fprintf(stderr, "Could not set numeric encoding\n");
+        return -1;
+    }
+
     if (thread_global_init() == -1)
         return -1;
     if (library_global_init() == -1)
