couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [1/2] couch commit: updated refs/heads/master to 636d30a
Date Thu, 28 Apr 2016 15:35:47 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/master b1127cdf5 -> 636d30ace


Undo our character advancement when we fixup

We should undo our character advancement after we finish fixup.

COUCHDB-1425


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/e142672d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/e142672d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/e142672d

Branch: refs/heads/master
Commit: e142672d33ace391f6ded1a3c2dfe3db0955028c
Parents: b1127cd
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Tue Apr 26 17:35:03 2016 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue Apr 26 17:45:48 2016 -0700

----------------------------------------------------------------------
 priv/couch_js/utf8.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/e142672d/priv/couch_js/utf8.c
----------------------------------------------------------------------
diff --git a/priv/couch_js/utf8.c b/priv/couch_js/utf8.c
index 2d23cc2..fcafff6 100644
--- a/priv/couch_js/utf8.c
+++ b/priv/couch_js/utf8.c
@@ -84,6 +84,9 @@ enc_charbuf(const jschar* src, size_t srclen, char* dst, size_t* dstlenp)
                 // Invalid second half of surrogate pair
                 v = (uint32) 0xFFFD;
             }
+            // Undo our character advancement
+            src--;
+            srclen++;
         }
         else
         {


Mime
View raw message