[Pkg-javascript-commits] [node-iconv-lite] 09/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 8e0643e19aef3ea7c33e8822ac98c9e8ecbf9e6e
Author: Jinwu Zhan <jenkinv at 163.com>
Date:   Thu Nov 24 10:32:36 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 8652d3c..8ea9426 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] || 0xA1F0;//not found in table ,replace it
+                            var gbkcode = revCharsTable[unicode] || 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