mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fixed macroman<->latin1 conversion. Some chars don't
exist in latin1, but at least the roundtrip results in the same macroman characters.
This commit is contained in:
parent
dfebe90c4c
commit
6f84ed5afc
48 changed files with 234 additions and 232 deletions
|
@ -70,7 +70,7 @@ class CfrgResource:
|
|||
try:
|
||||
data = Res.Get1Resource('cfrg', 0).data
|
||||
except Res.Error:
|
||||
raise Res.Error, "no Œcfrg¹ resource found", sys.exc_traceback
|
||||
raise Res.Error, "no •cfrgÕ resource found", sys.exc_traceback
|
||||
finally:
|
||||
Res.CloseResFile(resref)
|
||||
Res.UseResFile(currentresref)
|
||||
|
@ -146,7 +146,7 @@ class FragmentDescriptor:
|
|||
|
||||
def getfragment(self):
|
||||
if self.where <> 1:
|
||||
raise error, "can¹t read fragment, unsupported location"
|
||||
raise error, "canÕt read fragment, unsupported location"
|
||||
f = open(self.path, "rb")
|
||||
f.seek(self.offset)
|
||||
if self.length:
|
||||
|
@ -158,7 +158,7 @@ class FragmentDescriptor:
|
|||
|
||||
def copydata(self, outfile):
|
||||
if self.where <> 1:
|
||||
raise error, "can¹t read fragment, unsupported location"
|
||||
raise error, "canÕt read fragment, unsupported location"
|
||||
infile = open(self.path, "rb")
|
||||
if self.length == 0:
|
||||
infile.seek(0, 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue