From a910504d24c43492cc87b01442a54ab24f36b75f Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 14 May 2007 11:17:29 +0000 Subject: [PATCH] (make_locale): Fix setting of members of locale. --- src/locale.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 1.7.10.4