This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | loewis |
|---|---|
| Recipients | cfr, loewis, pitrou |
| Date | 2008年08月12日.07:19:37 |
| SpamBayes Score | 0.0013175673 |
| Marked as misclassified | No |
| Message-id | <1218525581.09.0.797840137148.issue3362@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Lists of possible string encodings are here: http://developer.apple.com/documentation/CoreFoundation/Reference/CFStringRef/Reference/reference.html#//apple_ref/c/tdef/CFStringBuiltInEncodings and http://developer.apple.com/documentation/CoreFoundation/Reference/CFStringRef/Reference/reference.html#//apple_ref/doc/constant_group/External_String_Encodings So it would be interesting to know what CFStringGetSystemEncoding returns on your system. Notice the special value kCFStringEncodingInvalidId, which it might also return. I think printf("Encoding is %x\n", enc); should do. I think mac_getscript is fine as it stands: if name is NULL, it tries CFStringConvertEncodingToIANACharSetName which should perform a lookup in the Apple database. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年08月12日 07:19:41 | loewis | set | recipients: + loewis, pitrou, cfr |
| 2008年08月12日 07:19:41 | loewis | set | messageid: <1218525581.09.0.797840137148.issue3362@psf.upfronthosting.co.za> |
| 2008年08月12日 07:19:40 | loewis | link | issue3362 messages |
| 2008年08月12日 07:19:39 | loewis | create | |