]> granicus.if.org Git - transmission/commitdiff
(libT) when unable to run locale-specific json tests, give a hint in the terminal...
authorJordan Lee <jordan@transmissionbt.com>
Fri, 1 Feb 2013 06:11:41 +0000 (06:11 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 1 Feb 2013 06:11:41 +0000 (06:11 +0000)
libtransmission/json-test.c

index bc20b1488895e820520eb2bf2e04623cae39ad73..9fae16801364c3f618310a4010bd8967d7c1a949 100644 (file)
@@ -249,7 +249,9 @@ main (void)
     if (setlocale (LC_NUMERIC, comma_locales[i]) != NULL)
       break;
   if (i==n)
-    fprintf (stderr, "WARNING: unable to run locale-specific json tests.\n");
+    fprintf (stderr, "WARNING: unable to run locale-specific json tests. add a locale like %s or %s\n",
+             comma_locales[0],
+             comma_locales[1]);
   else if ((rv = runTests (tests, NUM_TESTS(tests))))
     return rv;