]> granicus.if.org Git - icu/commitdiff
ICU-9314 U_CHARSET_IS_UTF8 dependency cleanup
authorAndy Heninger <andy.heninger@gmail.com>
Fri, 11 May 2012 17:54:07 +0000 (17:54 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Fri, 11 May 2012 17:54:07 +0000 (17:54 +0000)
X-SVN-Rev: 31813

icu4c/source/common/putil.cpp

index 7c9536b5b6ea277b951d3ed45b647e63358f8947..74ebda9f472b1fb230f8b38215e93067c3b8842a 100644 (file)
@@ -1444,6 +1444,7 @@ static const char *uprv_getPOSIXIDForDefaultLocale(void)
     return posixID;
 }
 
+#if !U_CHARSET_IS_UTF8
 /* Return just the POSIX id for the default codepage, whatever happens to be in
  * it. It gets the value from LC_CTYPE and indirectly from LC_ALL and LANG.
  */
@@ -1456,6 +1457,7 @@ static const char *uprv_getPOSIXIDForDefaultCodepage(void)
     return posixID;
 }
 #endif
+#endif
 
 /* NOTE: The caller should handle thread safety */
 U_CAPI const char* U_EXPORT2