po(refreshpot): define the input charset before read()'ing
authorintrigeri <intrigeri@boum.org>
Sat, 8 Nov 2008 20:32:04 +0000 (21:32 +0100)
committerintrigeri <intrigeri@boum.org>
Sat, 8 Nov 2008 20:32:04 +0000 (21:32 +0100)
commit646d7bf6a3c9d4f153f8129400a24ad147dcd67c
tree2857f0b7edaee151ffe09a535ad9221ef2de1f07
parent7691899da03a972ab89d6294478df281a3aa6e0f
po(refreshpot): define the input charset before read()'ing

... to prevent the use of Encode::Guess::guess_encoding() in
Locale::Po4a::Transtractor (just a minor security measure, dependent on po4a
internals, but we have no reason to think Encode::Guess is not safe).

Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm