We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In utmlish.js on line 68:
pcache[name] = _.template(fs.readFileSync(resolveSync(name + ".utml"),{encoding: 'utf8'}));
will generate an invalid encoding error. It seem that the signature of that function changed in version 0.10. Changing the line to
pcache[name] = _.template(fs.readFileSync(resolveSync(name + ".utml"),'utf8'));
makes it work for 0.8.20 at least.
I ran into this using a local install of pump2status.net.
The text was updated successfully, but these errors were encountered:
FWIW: yes, node v0.10.24 does accept the old-style encoding parameter in your change suggestion.
(And thanks for a google-friendly problem description – I was looking for how to make fs.readFileSync 0.8 friendly for a different project. :-)
fs.readFileSync
Sorry, something went wrong.
No branches or pull requests
In utmlish.js on line 68:
pcache[name] = _.template(fs.readFileSync(resolveSync(name + ".utml"),{encoding: 'utf8'}));
will generate an invalid encoding error. It seem that the signature of that function changed in version 0.10. Changing the line to
pcache[name] = _.template(fs.readFileSync(resolveSync(name + ".utml"),'utf8'));
makes it work for 0.8.20 at least.
I ran into this using a local install of pump2status.net.
The text was updated successfully, but these errors were encountered: