summaryrefslogtreecommitdiff
path: root/Mac/PythonLauncher
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-03-30 19:25:21 +0000
committerRonald Oussoren <ronaldoussoren@mac.com>2009-03-30 19:25:21 +0000
commit4a85269f7370a807fa577ea0ff454df5a0958c95 (patch)
tree20f64f6bd842bd3aef9d1f717e242228555e4bb2 /Mac/PythonLauncher
parente391835f35a0829f304877fa50afa2d63adeb99b (diff)
downloadcpython-git-4a85269f7370a807fa577ea0ff454df5a0958c95.tar.gz
Merged revisions 70735 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70735 | ronald.oussoren | 2009-03-30 14:22:56 -0500 (Mon, 30 Mar 2009) | 3 lines Remove usage of the deprecated '-cString' and '+stringWithCString:' API's in PythonLauncher, replacing them with the correct counterparts. ........
Diffstat (limited to 'Mac/PythonLauncher')
-rwxr-xr-xMac/PythonLauncher/FileSettings.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/PythonLauncher/FileSettings.m b/Mac/PythonLauncher/FileSettings.m
index 1f3695eec1..66b4fdc086 100755
--- a/Mac/PythonLauncher/FileSettings.m
+++ b/Mac/PythonLauncher/FileSettings.m
@@ -267,14 +267,14 @@
[script length]-[[script lastPathComponent] length]];
if (honourhashbang &&
- (fp=fopen([script cString], "r")) &&
+ (fp=fopen([script fileSystemRepresentation], "r")) &&
fgets(hashbangbuf, sizeof(hashbangbuf), fp) &&
strncmp(hashbangbuf, "#!", 2) == 0 &&
(p=strchr(hashbangbuf, '\n'))) {
*p = '\0';
p = hashbangbuf + 2;
while (*p == ' ') p++;
- cur_interp = [NSString stringWithCString: p];
+ cur_interp = [NSString stringWithUTF8String: p];
}
if (!cur_interp)
cur_interp = interpreter;