(libT) when unable to run locale-specific json tests, give a hint in the terminal about how to remedy that

This commit is contained in:
Jordan Lee 2013-02-01 06:11:41 +00:00
parent 1a99b9c168
commit 3819360ca0
1 changed files with 3 additions and 1 deletions

View 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;