mirror of https://github.com/lukechilds/node.git
Browse Source
Normalize the encoding in getDecoder() before using it. Fixes an AssertionError: "Cannot change encoding" when encoding is "ucs2", "ucs-2" or "utf-16le" Fixes: https://github.com/nodejs/node/issues/8236 PR-URL: https://github.com/nodejs/node/pull/8301 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>v6.x
atstojanov
8 years ago
committed by
Jeremiah Senkpiel
2 changed files with 27 additions and 1 deletions
Loading…
Reference in new issue