Skip to content

Commit

Permalink
internal/util: move the case 'latin1'
Browse files Browse the repository at this point in the history
make the `case 'latin1':` near by `case 'binary':`.

PR-URL: #9646
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
JacksonTian authored and jasnell committed Dec 5, 2016
1 parent 02a4c08 commit fc31055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ exports.normalizeEncoding = function normalizeEncoding(enc) {
case 'utf-8':
return 'utf8';
case 'ucs2':
case 'utf16le':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return 'utf16le';
case 'latin1':
case 'binary':
return 'latin1';
case 'base64':
case 'ascii':
case 'latin1':
case 'hex':
return enc;
default:
Expand Down

0 comments on commit fc31055

Please sign in to comment.