[Python-bugs-list] [ python-Bugs-682215 ] Carbon.CF.CFString should require ASCII

SourceForge.net noreply@sourceforge.net
Mon, 03 Mar 2003 05:30:05 -0800


Bugs item #682215, was opened at 2003-02-07 10:35
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=682215&group_id=5470

Category: Macintosh
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jack Jansen (jackjansen)
Summary: Carbon.CF.CFString should require ASCII

Initial Comment:
If a Python string is passed where a CFString is expected the bytes are used verbatim (using CFStringCreateWithCString()), but this is probably wrong. We should either allow only ASCII or use sys.getdefaultencoding() or something similar.

This is a copy of PyObjC bug <https://sourceforge.net/tracker/?func=detail&atid=114534&aid=681880&group_id=14534>.

----------------------------------------------------------------------

>Comment By: Jack Jansen (jackjansen)
Date: 2003-03-03 14:30

Message:
Logged In: YES 
user_id=45365

Implemented in CVS.

----------------------------------------------------------------------

Comment By: Just van Rossum (jvr)
Date: 2003-02-07 16:14

Message:
Logged In: YES 
user_id=92689

You can strike the "probably". Although the rest of Python uses the default encoding, I think it's actually wise to just use ASCII and nudge them towards unicode.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=682215&group_id=5470