Skip to content

Commit 4a85269

Browse files
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. ........
1 parent e391835 commit 4a85269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mac/PythonLauncher/FileSettings.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,14 @@ - (NSString *)commandLineForScript: (NSString *)script
267267
[script length]-[[script lastPathComponent] length]];
268268

269269
if (honourhashbang &&
270-
(fp=fopen([script cString], "r")) &&
270+
(fp=fopen([script fileSystemRepresentation], "r")) &&
271271
fgets(hashbangbuf, sizeof(hashbangbuf), fp) &&
272272
strncmp(hashbangbuf, "#!", 2) == 0 &&
273273
(p=strchr(hashbangbuf, '\n'))) {
274274
*p = '\0';
275275
p = hashbangbuf + 2;
276276
while (*p == ' ') p++;
277-
cur_interp = [NSString stringWithCString: p];
277+
cur_interp = [NSString stringWithUTF8String: p];
278278
}
279279
if (!cur_interp)
280280
cur_interp = interpreter;

0 commit comments

Comments
 (0)