Permalink
Browse files

internal/util: move the case 'latin1'

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 Fishrock123 committed Nov 16, 2016
1 parent 5ad7e04 commit f55a63c86fafaca1e760bfe1a0a3ab1b498147d2
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/internal/util.js
View
@@ -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:

0 comments on commit f55a63c

Please sign in to comment.