readline: use StringDecoder for decoding "normal" data
authorNathan Rajlich <nathan@tootallnate.net>
Fri, 6 Apr 2012 21:33:58 +0000 (14:33 -0700)
committerNathan Rajlich <nathan@tootallnate.net>
Fri, 6 Apr 2012 23:13:40 +0000 (16:13 -0700)
commit78eb174ea2d26ee3bea89f707b78441a8c73c098
treed364edf13e4ff50ccdf731db20b268034d292689
parent8652c11031cf89d042aa9f0b9c0f33e60ab18c97
readline: use StringDecoder for decoding "normal" data

The fix from #3059 was not handling multi-byte utf8 data properly.
lib/readline.js
test/simple/test-readline-interface.js