diff options
author | Koen Kooi <koen@openembedded.org> | 2009-06-05 13:07:17 +0200 |
---|---|---|
committer | Koen Kooi <koen@Powerbook-3.local> | 2009-06-05 17:48:14 +0200 |
commit | 33fdd6399af61722a5283a329e0a6b6e0a4b06a0 (patch) | |
tree | f39ead9b82d8a70157f099e25b16fcbc57413d5a /recipes/webkit/webkit-gtk/unicode-fixes.diff | |
parent | 9e51e58bd4afba5696959e9ffb0822b81bef7241 (diff) |
webkit: bump SRCREV
Diffstat (limited to 'recipes/webkit/webkit-gtk/unicode-fixes.diff')
-rw-r--r-- | recipes/webkit/webkit-gtk/unicode-fixes.diff | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/webkit/webkit-gtk/unicode-fixes.diff b/recipes/webkit/webkit-gtk/unicode-fixes.diff new file mode 100644 index 0000000000..03dbc0f3d1 --- /dev/null +++ b/recipes/webkit/webkit-gtk/unicode-fixes.diff @@ -0,0 +1,22 @@ +Index: wtf/unicode/glib/UnicodeMacrosFromICU.h +=================================================================== +--- a/JavaScriptCore/wtf/unicode/glib/UnicodeMacrosFromICU.h (revision 44458) ++++ b/JavaScriptCore/wtf/unicode/glib/UnicodeMacrosFromICU.h (working copy) +@@ -41,6 +41,17 @@ + #define U16_IS_SURROGATE(c) U_IS_SURROGATE(c) + #define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0) + ++#define U16_PREV(s, start, i, c) { \ ++ (c)=(s)[--(i)]; \ ++ if(U16_IS_TRAIL(c)) { \ ++ uint16_t __c2; \ ++ if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \ ++ --(i); \ ++ (c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \ ++ } \ ++ } \ ++} ++ + #define U16_NEXT(s, i, length, c) { \ + (c)=(s)[(i)++]; \ + if(U16_IS_LEAD(c)) { \ |