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>
This commit is contained in:
parent
02a4c081e9
commit
fc31055117
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user