Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Nov 1996 18:50:14 -0800 (PST)
From:      "Andrey A. Chernov" <ache>
To:        CVS-committers, cvs-all, cvs-lib
Subject:   cvs commit:  src/lib/libc/locale collate.c setlocale.c setrunelocale.c
Message-ID:  <199611260250.SAA00761@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
ache        96/11/25 18:50:08

  Modified:    lib/libc/locale  collate.c setlocale.c setrunelocale.c
  Log:
  PATH_LOCALE: use this non-standard env variable first time only, i.e.
  strdup() it to prevent unsetenv() or setenv() effects. Check its length to
  not allow user to overflow internal locale buffer. Move PATH_LOCALE
  handling code into one place.
  
  POSIX: make better stub for LC_MONETARY & LC_NUMERIC, now it check
  locale directory existance instead of refusing all non-C non-POSIX
  locales. POSIX treats empty locale env variable as unset variable
  while our old code treats it as "C" locale, fix it. Implement previous locale
  restoring, if locale setting fails. Old code assumes success if some
  of LC_ALL subset is successed even other fails, POSIX treats it as
  failure with previous locale restoring, fix it.
  
  Remove unneccessary length checking in currentlocale()
  
  Revision  Changes    Path
  1.9       +6 -4      src/lib/libc/locale/collate.c
  1.9       +89 -64    src/lib/libc/locale/setlocale.c
  1.4       +3 -4      src/lib/libc/locale/setrunelocale.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611260250.SAA00761>