[BACK]Return to locale.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / locale

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/locale/locale.c between version 1.3 and 1.3.2.1

version 1.3, 2004/01/05 23:23:35 version 1.3.2.1, 2004/07/12 20:33:29
Line 436  showlocale(void)
Line 436  showlocale(void)
         if (lang == NULL) {          if (lang == NULL) {
                 lang = "";                  lang = "";
         }          }
         printf("LANG=%s\n", lang);          printf("LANG=\"%s\"\n", lang);
         /* XXX: if LANG is null, then set it to "C" to get implied values? */          /* XXX: if LANG is null, then set it to "C" to get implied values? */
   
         for (i = 0; i < NLCINFO; i++) {          for (i = 0; i < NLCINFO; i++) {
Line 452  showlocale(void)
Line 452  showlocale(void)
                          * overriden environment variable are set into same                           * overriden environment variable are set into same
                          * value, then it'll be assumed as 'implied'                           * value, then it'll be assumed as 'implied'
                          */                           */
                         printf("%s=%s\n", lcinfo[i].name, vval);                          printf("%s=\"%s\"\n", lcinfo[i].name, vval);
                 } else {                  } else {
                         printf("%s=\"%s\"\n", lcinfo[i].name, vval);                          printf("%s=\"%s\"\n", lcinfo[i].name, vval);
                 }                  }
Line 462  showlocale(void)
Line 462  showlocale(void)
         if (vval == NULL) {          if (vval == NULL) {
                 vval = "";                  vval = "";
         }          }
         printf("LC_ALL=%s\n", vval);          printf("LC_ALL=\"%s\"\n", vval);
 }  }
   
 /*  /*

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.2.1

CVSweb <webmaster@jp.NetBSD.org>