Created
February 9, 2012 19:54
-
-
Save ozten/1782430 to your computer and use it in GitHub Desktop.
Minimum test case for buffer.equals exception and gettext
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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