Control: tag -1 - moreinfo
Control: tag -1 + confirmed

On Sat, 06 Dec 2014 01:33:58 -0100, Daniel Getz wrote:

I can reproduce the problem with
LC_ALL=C LANG=C /etc/cron.weekly/dhelp

> Attached is a diff with a change to dhelp_parse.rb which sets
> Encoding.default_external explicitly, so that even if LANG=C, it uses UTF-8
> instead of US-ASCII as the default for opening files. By my (limited)
> understanding of Encoding.default_external, this should have the same
> effect on opening files as replacing LANG=C with LANG=xx_XX.UTF-8 would.
> 
> On my machine, without the patch, I see the same errors with LANG=C as the
> others here. With the patch, I do not.

Works for me as well.
 

Since I don't speak any ruby I'm a bit hesitant to upload; maybe some
ruby speaker knowing Encoding.default_external can confirm that's the
correct way forwards?

(And: Are we sure all doc-base files are us-ascii or utf-8 encoded?
At least on my machine they are, so maybe that's a non-concern.)


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Treibhaus: Yellowman Jamaica

Attachment: signature.asc
Description: Digital Signature

Reply via email to