[Pkg-javascript-commits] [node-iconv-lite] 10/83: change 0xA1F0 to consistent in variable iconv.defaultCharUnicode

matthew pideil mpideil-guest at moszumanska.debian.org
Tue Apr 1 19:56:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

mpideil-guest pushed a commit to branch master
in repository node-iconv-lite.

commit 7fff42d44da68ceb78999250d47fa7635e3df4a1
Author: Jinwu Zhan <jenkinv at 163.com>
Date:   Thu Nov 24 10:38:32 2011 +0800

    change 0xA1F0 to consistent in variable iconv.defaultCharUnicode
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 8ea9426..6f5eab9 100644
--- a/index.js
+++ b/index.js
@@ -142,7 +142,7 @@ module.exports = iconv = {
                     for (var i = 0, j = 0; i < strLen; i++) {
                         var unicode = str.charCodeAt(i);
                         if (!!(unicode >> 7)) {
-                            var gbkcode = revCharsTable[unicode] || iconv.defaultCharUnicode.charCodeAt(0);//not found in table ,replace it
+                            var gbkcode = revCharsTable[unicode] || revCharsTable[iconv.defaultCharUnicode.charCodeAt(0)];//not found in table ,replace it
                             newBuf[j++] = gbkcode >> 8;//high byte;
                             newBuf[j++] = gbkcode & 0xFF;//low byte
                         } else {//ascii

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-iconv-lite.git



More information about the Pkg-javascript-commits mailing list