Skip to content

Instantly share code, notes, and snippets.

@ozten
Created February 9, 2012 19:54
Show Gist options
  • Select an option

  • Save ozten/1782430 to your computer and use it in GitHub Desktop.

Select an option

Save ozten/1782430 to your computer and use it in GitHub Desktop.
Minimum test case for buffer.equals exception and gettext
/* Copy any mo file to /tmp/any.mo
Comment and uncomment _p to repro. */
var fs = require('fs'),
path=require('path'),
//_p = require('postprocess'),
Gettext = require('node-gettext');
var locale = "eo",
mo_path = '/tmp/any.mo',
data = fs.readFileSync(mo_path),
gt = new Gettext();
gt.addTextdomain(locale, data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment