Deleted Added
full compact
28c28
< __FBSDID("$FreeBSD: head/lib/libc/locale/lmessages.c 101470 2002-08-07 16:45:23Z ache $");
---
> __FBSDID("$FreeBSD: head/lib/libc/locale/lmessages.c 101498 2002-08-08 05:51:54Z ache $");
55,61c55
< /*
< * Propose that we can have incomplete locale file (w/o "{yes,no}str").
< * Initialize them before loading. In case of complete locale, they'll
< * be initialized to loaded value, otherwise they'll not be touched.
< */
< _messages_locale.yesstr = empty;
< _messages_locale.nostr = empty;
---
> int ret;
63,66c57,67
< return __part_load_locale(name, &_messages_using_locale,
< _messages_locale_buf, "LC_MESSAGES",
< LCMESSAGES_SIZE_FULL, LCMESSAGES_SIZE_MIN,
< (const char **)&_messages_locale);
---
> ret = __part_load_locale(name, &_messages_using_locale,
> _messages_locale_buf, "LC_MESSAGES",
> LCMESSAGES_SIZE_FULL, LCMESSAGES_SIZE_MIN,
> (const char **)&_messages_locale);
> if (ret == _LDP_LOADED) {
> if (_messages_locale.yesstr == NULL)
> _messages_locale.yesstr = empty;
> if (_messages_locale.nostr == NULL)
> _messages_locale.nostr = empty;
> }
> return (ret);