Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#1757 closed defect (fixed)

loadFile of package.mo with encoding="Windows-1252" only applies to package.mo file.

Reported by: Adrian Pop Owned by: somebody
Priority: normal Milestone: 1.9.0
Component: Parser Version:
Keywords: Cc:

Description

loadFile("Lib/package.mo", encoding="Windows-1252") 

will only load package.mo with that encoding,
not all in the library which should be the case.

If you add a package.encoding where package.mo
is then loadFile("Lib/package.mo") will work.

Change History (5)

comment:1 by Adrian Pop, 13 years ago

Component: BackendParser

comment:2 by anonymous, 13 years ago

Yes, it should print that it is an error to change encoding when loading a package.mo file using loadFile and refuse to do it.

comment:3 by Adrian Pop, 13 years ago

Why should we reject it? Just load all files in the Lib with that encoding.

The problem is that pacakge.encoding file might
not be possible to be created by the user (if the
lib is in a read only place).

comment:4 by Martin Sjölund, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in r12460.

comment:5 by Martin Sjölund, 12 years ago

Milestone: 1.9.0
Note: See TracTickets for help on using tickets.