summaryrefslogtreecommitdiffstats
path: root/Python/mactoolboxglue.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2004-07-15 13:31:39 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2004-07-15 13:31:39 (GMT)
commit59f072ad7c7b56a1e803a74ba59d869b838c256f (patch)
tree0e9cd92ad9c423e8ab54d7bd23786fbc1b802dab /Python/mactoolboxglue.c
parent75694501cae16b6a688bba2e6fb3fd1f0d3ba22f (diff)
downloadcpython-59f072ad7c7b56a1e803a74ba59d869b838c256f.zip
cpython-59f072ad7c7b56a1e803a74ba59d869b838c256f.tar.gz
cpython-59f072ad7c7b56a1e803a74ba59d869b838c256f.tar.bz2
Moved PyMac_GetScript() to _localemodule, which is the only place where
it is used, and made it private. Should fix #978662.
Diffstat (limited to 'Python/mactoolboxglue.c')
-rw-r--r--Python/mactoolboxglue.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c
index 7308ae4..ba15062 100644
--- a/Python/mactoolboxglue.c
+++ b/Python/mactoolboxglue.c
@@ -27,30 +27,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "pymactoolbox.h"
-/*
-** Find out what the current script is.
-** Donated by Fredrik Lund.
-*/
-char *PyMac_getscript()
-{
- CFStringEncoding enc = CFStringGetSystemEncoding();
- static CFStringRef name = NULL;
- /* Return the code name for the encodings for which we have codecs. */
- switch(enc) {
- case kCFStringEncodingMacRoman: return "mac-roman";
- case kCFStringEncodingMacGreek: return "mac-greek";
- case kCFStringEncodingMacCyrillic: return "mac-cyrillic";
- case kCFStringEncodingMacTurkish: return "mac-turkish";
- case kCFStringEncodingMacIcelandic: return "mac-icelandic";
- /* XXX which one is mac-latin2? */
- }
- if (!name) {
- /* This leaks a an object. */
- name = CFStringConvertEncodingToIANACharSetName(enc);
- }
- return (char *)CFStringGetCStringPtr(name, 0);
-}
-
/* Like strerror() but for Mac OS error numbers */
char *PyMac_StrError(int err)
{