summaryrefslogtreecommitdiffstats
path: root/source/python
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-11-27 20:58:45 +0000
committerJeremy Allison <jra@samba.org>2002-11-27 20:58:45 +0000
commite88bbec2a06bd92b8cfa33efdf166c4fa72cb656 (patch)
tree1c454bb05652aa55ef7d940a359bfe0d41e70972 /source/python
parent1a36ac60bef8de5368860478c268ba1671bb4825 (diff)
downloadsamba-e88bbec2a06bd92b8cfa33efdf166c4fa72cb656.tar.gz
samba-e88bbec2a06bd92b8cfa33efdf166c4fa72cb656.tar.xz
samba-e88bbec2a06bd92b8cfa33efdf166c4fa72cb656.zip
Remove use of 'F' - make 'f' and 'p' do unix (iso8859-1) encoding.
Jeremy.
Diffstat (limited to 'source/python')
-rw-r--r--source/python/py_tdbpack.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source/python/py_tdbpack.c b/source/python/py_tdbpack.c
index 7a03f830ee9..b79f96dbc66 100644
--- a/source/python/py_tdbpack.c
+++ b/source/python/py_tdbpack.c
@@ -235,13 +235,6 @@ pytdbpack_data(const char *format_str,
case 'f':
case 'P':
- if (!(packed_list = pytdbpack_str(ch, val_iter, packed_list, pytdb_dos_encoding)))
- return NULL;
- break;
-
- case 'F':
- /* We specify NULL encoding: Samba databases in this
- form are written in the default Python encoding. */
if (!(packed_list = pytdbpack_str(ch, val_iter, packed_list, pytdb_unix_encoding)))
return NULL;
break;
@@ -668,9 +661,6 @@ static PyObject *pytdbunpack_item(char ch,
result = pytdbunpack_uint32(pbuf, plen);
}
else if (ch == 'f' || ch == 'P') { /* nul-term string */
- result = pytdbunpack_string(pbuf, plen, pytdb_dos_encoding);
- }
- else if (ch == 'F') { /* nul-term string */
result = pytdbunpack_string(pbuf, plen, pytdb_unix_encoding);
}
else if (ch == 'B') { /* length, buffer */