Fix more egcs v. gcc differences.
git-svn-id: svn://10.0.0.236/trunk@41789 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3f444ec2a0
commit
dfcf0daf2f
@ -61,11 +61,11 @@ nsresult nsDateTimeFormatUnix::FormatTMTime(nsILocale* locale,
|
||||
|
||||
PL_strncpy(platformLocale, "en_US", kPlatformLocaleLength+1);
|
||||
if (locale != nsnull) {
|
||||
const PRUnichar *aLocaleUnichar;
|
||||
PRUnichar *aLocaleUnichar;
|
||||
nsString aLocale;
|
||||
nsString aCategory("NSILOCALE_TIME");
|
||||
|
||||
res = locale->GetCategory(aCategory.GetUnicode(), &aLocaleUnichar);
|
||||
res = locale->GetCategory(aCategory.ToNewUnicode(), &aLocaleUnichar);
|
||||
if (NS_FAILED(res)) {
|
||||
return res;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user