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: nodejs#9646
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
JacksonTian authored and Jonathan Darling committed Dec 8, 2016
1 parent 9a30910 commit 4604b0d
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 4604b0d

Please sign in to comment.