Permalink
Browse files

Add failing test for another POParser#_detectCharset bug

  • Loading branch information...
1 parent b41cde1 commit ae8caa3c7868a961a4f9da8cc9731361b9fbc655 @danmactough danmactough committed Oct 12, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/gettext.js
View
@@ -429,5 +429,15 @@ exports["BUG-POParser#_detectCharset-PO"] = {
});
test.done();
});
+ },
+ "detect utf-8 charset": function(test){
+ fs.readFile(__dirname+"/utf8_bug_poparser.po", function(err, body){
+ if(err){
+ throw err;
+ }
+ test.p = new POParser(body);
+ test.equal(test.p._charset, 'utf-8');
+ test.done();
+ });
}
}

0 comments on commit ae8caa3

Please sign in to comment.