don't return blank locale parts
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 19 Dec 2012 09:52:14 +0000 (09:52 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 19 Dec 2012 09:52:14 +0000 (09:52 +0000)
SVN revision: 81340

src/bin/e_intl.c

index 29f96ac..91df5f2 100644 (file)
@@ -729,6 +729,7 @@ e_intl_locale_parts_get(const char *locale)
         break;
      }
 
+   if ((!language[0]) && (!territory[0]) && (!codeset[0]) && (!modifier[0])) return NULL;
    locale_parts = E_NEW(E_Locale_Parts, 1);
 
    /* Put the parts of the string together */