From fc6121e4886640e8ce7b9a2a9b13fbd73ae12493 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 22 Jun 2011 17:55:36 +0000 Subject: [PATCH] Fix a bug in serialize.js that was breaking Zotero startup in Nightly (blame Tim Berners-Lee) --- chrome/content/zotero/xpcom/rdf/serialize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/rdf/serialize.js b/chrome/content/zotero/xpcom/rdf/serialize.js index 0eb51ac1c6..ab0b4648dc 100644 --- a/chrome/content/zotero/xpcom/rdf/serialize.js +++ b/chrome/content/zotero/xpcom/rdf/serialize.js @@ -470,9 +470,9 @@ function backslashUify(str) { for (var i=0; i65535) - res += '\U' + ('00000000'+n.toString(16)).slice(-8); // convert to upper? + res += '\\U' + ('00000000'+n.toString(16)).slice(-8); // convert to upper? else if (k>126) - res += '\u' + ('0000'+n.toString(16)).slice(-4); + res += '\\u' + ('0000'+n.toString(16)).slice(-4); else res += str[i]; }