ICU-3499 Don't ignore the locale parameter.

X-SVN-Rev: 15294
This commit is contained in:
George Rhoten 2004-05-13 20:59:47 +00:00
parent b9259ec22a
commit 73d5a99646

View File

@ -130,6 +130,20 @@ u_fstropen(UChar *stringBuf,
result->str.fBuffer = stringBuf;
result->str.fPos = stringBuf;
result->str.fLimit = stringBuf+capacity;
#if !UCONFIG_NO_FORMATTING
/* if locale is 0, use the default */
if(locale == 0) {
locale = uloc_getDefault();
}
if(u_locbund_init(&result->str.fBundle, locale) == 0) {
/* DO NOT FCLOSE HERE! */
uprv_free(result);
return 0;
}
#endif
return result;
}