andris9/node-gettext — pull request #10 by danmactough (2012-10-12 20:02:13+00:00)
Title: Bug: POParser fails to detect charset in .PO file

Fix a bug in POParser#_detectCharset extracting the charset from .po headers. String#match on a substring needs to by incremented by the starting position or the entire header block is not captured. This causes unpredicable failure depending on how many lines the header block has and where within the header block the "charset" string is; it might be within the part captured or it might not.

This includes previous pull request.