diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-06-22 09:52:31 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-06-23 13:47:27 +0200 |
commit | 125a2ff262aa312df20eec68802fd5f8a47f492f (patch) | |
tree | 7308c0b58fa7016d8d174f2b50db32567f204895 /lib/util/charset/util_str.c | |
parent | 6c3cef773a989f175c518b435feebab287a58cf0 (diff) | |
download | samba-125a2ff262aa312df20eec68802fd5f8a47f492f.tar.gz samba-125a2ff262aa312df20eec68802fd5f8a47f492f.tar.bz2 samba-125a2ff262aa312df20eec68802fd5f8a47f492f.zip |
lib/util/charset: Remove 'display charset'
As discussed in 'CH_DISPLAY and gettext' on the samba-technical list:
http://lists.samba.org/archive/samba-technical/2011-June/078190.html
Setting this to a value other than 'unix charset' does not make sense,
as any system where the filesytem charset does not equal the terminal
charset will already have problems with programs as simple as 'ls'.
It also means that our output could not be pasted as our input in
interactive programs or onto our command line, as we never did
translate in the DISPLAY -> UNIX direction.
The d_printf() calls are retained in case we need to revisit this, and
to support display_set_stderr().
Andrew Bartlett
Diffstat (limited to 'lib/util/charset/util_str.c')
-rw-r--r-- | lib/util/charset/util_str.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/util/charset/util_str.c b/lib/util/charset/util_str.c index 80e5bde354..688ab5a0a1 100644 --- a/lib/util/charset/util_str.c +++ b/lib/util/charset/util_str.c @@ -169,7 +169,6 @@ _PUBLIC_ size_t strlen_m_ext_handle(struct smb_iconv_handle *ic, switch (dst_charset) { case CH_DOS: case CH_UNIX: - case CH_DISPLAY: smb_panic("cannot call strlen_m_ext() with a variable dest charset (must be UTF16* or UTF8)"); default: break; |