Remove use of 'F' - make 'f' and 'p' do unix (iso8859-1) encoding.
authorJeremy Allison <jra@samba.org>
Wed, 27 Nov 2002 20:58:45 +0000 (20:58 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 27 Nov 2002 20:58:45 +0000 (20:58 +0000)
Jeremy.
(This used to be commit e88bbec2a06bd92b8cfa33efdf166c4fa72cb656)

source3/python/py_tdbpack.c

index 7a03f830ee9dfdb126d1c32275d4f64287ad7e5f..b79f96dbc6673d238b27a42c9ebc15f5d33fd353 100644 (file)
@@ -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 */