/* locale.c -- locale module.
- Copyright (C) 2003, 2004
+ Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number H15PRO112
str[i] = '\0';
if (c == '\0')
/* The first field is for language. */
- locale->language = msymbol (name);
+ locale->language = msymbol (str);
else if (c == '_')
/* The field following '_' is for territory. */
- locale->territory = msymbol (name);
+ locale->territory = msymbol (str);
else if (c == '.')
/* The field following '.' is for codeset. */
- locale->codeset = msymbol (name);
+ locale->codeset = msymbol (str);
else
/* The other field is for modifier. */
- locale->modifier = msymbol (name);
+ locale->modifier = msymbol (str);
if (! c1)
break;
c = c1;
- name += i + 1;
+ str += i + 1;
}
#ifdef HAVE_NL_LANGINFO
If the call is successful, mlocale_set () returns an opaque locale
object that corresponds to the locale. The name of the locale can
be acquired by the function mlocale_get_prop ().
-
Otherwise, it returns NULL. */
/***ja
¸Æ¤Ó½Ð¤·¤ËÀ®¸ù¤¹¤ì¤Ð¡¢mlocale_set () ¤Ï¥í¥±¡¼¥ë¤ËÂбþ¤¹¤ë opaque
¥í¥±¡¼¥ë¥ª¥Ö¥¸¥§¥¯¥È¤òÊÖ¤¹¡£¥í¥±¡¼¥ë¤Î̾Á°¤Ï´Ø¿ô
mlocale_get_prop () ¤Ë¤è¤Ã¤ÆÆÀ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
-
¤½¤¦¤Ç¤Ê¤±¤ì¤Ð NULL ¤òÊÖ¤¹¡£
*/
of strftime ().
@seealso
- strftime ()
+ strftime ().
*/
/***ja
@brief ÆüÉդȻþ´Ö¤ò¥Õ¥©¡¼¥Þ¥Ã¥È¤¹¤ë.
°ú¿ô $TM ¤È $FORMAT ¤Î°ÕÌ£¤Ï strftime () ¤Î¾ì¹ç¤ÈƱ¤¸¡£
@seealso
- strftime ()
+ strftime ().
*/
int