ICU-3499 Don't ignore the locale parameter.
X-SVN-Rev: 15294
This commit is contained in:
parent
b9259ec22a
commit
73d5a99646
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user