Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

One line fix for node 0.3 #17

Closed
wants to merge 1 commit into from

1 participant

@JulianBirch

Hi, hope this is useful. Don't know if you'd prefer to do a test for the existence of utf8write. This is checked inasmuch as it can display the front page of howtonode.js. More sophistication to come soon... :)

Julian.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 10, 2010
  1. Wheat now renders the front page in node 0.3.

    Julian authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/wheat/tools.js
View
2  lib/wheat/tools.js 100644 → 100755
@@ -117,7 +117,7 @@ var Helpers = {
// Convert UTF8 strings to binary buffers for faster loading
function stringToBuffer(string) {
var buffer = new Buffer(Buffer.byteLength(string));
- buffer.utf8Write(string);
+ buffer.write(string, 0, 'utf8');
return buffer;
};
Something went wrong with that request. Please try again.