On Sat Apr 16 17:09:47 2016, laurent.dami@free.fr wrote:
Show quoted text> So I agree, it's a mess! Nevertheless some of those do handle the BOM
> and it would be nice if Config::General could do it too.
Agreed.
Show quoted text> Regarding your answer : leaving the responsability to the client would
> only work with one single file; if there are some <<include>>
> statements, then the client has no control on how those included files
> will be opened, so it can only be handled properly by the module
> itself.
Indeed, I didn't think of includes :)
Show quoted text> I rolled up my sleeves and here is a proposed patch with also some
> test cases. Let me know what you think.
Looks good, but those are not included in the patch:
+t/utf8_bom.t
+t/utf8_bom/bar.cfg
+t/utf8_bom/foo.cfg
Thanks,
Tom