diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-03-03 13:19:44 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-03-03 13:19:44 (GMT) |
commit | 885d4f65776b650e51301ac4cb3138fa08c82cda (patch) | |
tree | 31e80aac1171eee06a8d9faabde30f7764a6c234 /Mac/Modules/cf/cfsupport.py | |
parent | d505cab5b3c9074aa678a33f03f97623d3e5fd28 (diff) | |
download | cpython-885d4f65776b650e51301ac4cb3138fa08c82cda.zip cpython-885d4f65776b650e51301ac4cb3138fa08c82cda.tar.gz cpython-885d4f65776b650e51301ac4cb3138fa08c82cda.tar.bz2 |
Mod to previous checkin: we must require ascii, not system defautl encoding,
because we have no easy way to convert the python encoding string to
a CF encoding parameter.
Diffstat (limited to 'Mac/Modules/cf/cfsupport.py')
-rw-r--r-- | Mac/Modules/cf/cfsupport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/cf/cfsupport.py b/Mac/Modules/cf/cfsupport.py index bb0ac40..e8fb710 100644 --- a/Mac/Modules/cf/cfsupport.py +++ b/Mac/Modules/cf/cfsupport.py @@ -360,7 +360,7 @@ class CFStringRefObjectDefinition(MyGlobalObjectDefinition): if (v == Py_None) { *p_itself = NULL; return 1; } if (PyString_Check(v)) { char *cStr; - if (!PyArg_Parse(v, "et", "ascii", &cStr)) + if (!PyArg_Parse(v, "es", "ascii", &cStr)) return NULL; *p_itself = CFStringCreateWithCString((CFAllocatorRef)NULL, cStr, kCFStringEncodingASCII); return 1; |