lib/util/charset: Remove autodetection of charset from LOCALE
authorAndrew Bartlett <abartlet@samba.org>
Tue, 21 Jun 2011 23:58:59 +0000 (09:58 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 23 Jun 2011 11:47:27 +0000 (13:47 +0200)
commitde0e0119447060c64f4531c031e5509de3afc1b5
tree777432b63b90070d4afddfeff5148ff7ffca36f5
parent125a2ff262aa312df20eec68802fd5f8a47f492f
lib/util/charset: Remove autodetection of charset from LOCALE

In the past, our LOCALE would set the display charset of Samba.  The
display charset has now been removed.  This patch removes the support
code that detected the locale from the environment.  We cannot safely
have 'unix charset' follow the locale (at it creates files on disk and
entries in databases that must not vary), so this code is unused.

As an example, imagine a database is manipulated in the
administrator's locale, and then read by smbd starting up in the
system default locale.  Or smbd restarted by the administrator rather
than a startup script.  Both of these situations could corrupt
databases or filenames on disk.

Andrew Bartlett
lib/util/charset/codepoints.c
source3/configure.in
source3/wscript