Browse Source

internal/util: move the case 'latin1'

make the `case 'latin1':` near by `case 'binary':`.

PR-URL: https://github.com/nodejs/node/pull/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>
v6.x
Jackson Tian 8 years ago
committed by Myles Borins
parent
commit
12fe071abf
  1. 4
      lib/internal/util.js

4
lib/internal/util.js

@ -147,15 +147,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:

Loading…
Cancel
Save