From: handa Date: Mon, 14 May 2007 11:17:29 +0000 (+0000) Subject: (make_locale): Fix setting of members of locale. X-Git-Tag: FLT-base~67 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a910504d24c43492cc87b01442a54ab24f36b75f;p=m17n%2Fm17n-lib.git (make_locale): Fix setting of members of locale. --- diff --git a/src/locale.c b/src/locale.c index bd020b6..4fe79f1 100644 --- a/src/locale.c +++ b/src/locale.c @@ -128,20 +128,20 @@ make_locale (const char *name) 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