aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/utf/utf_normalizer.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-08-03 04:42:27 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-08-03 04:42:27 +0000
commit757d630522c3066cbc293faeeaf534b2b3a8c7be (patch)
treea60cac2e2cc1fd31f6bd31a384b0d35a74aa0b9d /phpBB/includes/utf/utf_normalizer.php
parentf6bfe8db161db271628df8128812209648c3b5e3 (diff)
downloadforums-757d630522c3066cbc293faeeaf534b2b3a8c7be.tar
forums-757d630522c3066cbc293faeeaf534b2b3a8c7be.tar.gz
forums-757d630522c3066cbc293faeeaf534b2b3a8c7be.tar.bz2
forums-757d630522c3066cbc293faeeaf534b2b3a8c7be.tar.xz
forums-757d630522c3066cbc293faeeaf534b2b3a8c7be.zip
OH NO, WHAT HAS HE DONE?!
- bug in the normalizer, we must renormalize... again... git-svn-id: file:///svn/phpbb/trunk@8001 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/utf/utf_normalizer.php')
-rw-r--r--phpBB/includes/utf/utf_normalizer.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/phpBB/includes/utf/utf_normalizer.php b/phpBB/includes/utf/utf_normalizer.php
index c1a0fc9a7b..8b5cf5a993 100644
--- a/phpBB/includes/utf/utf_normalizer.php
+++ b/phpBB/includes/utf/utf_normalizer.php
@@ -123,6 +123,12 @@ class utf_normalizer
include($phpbb_root_path . 'includes/utf/data/utf_nfc_qc.' . $phpEx);
}
+ if (!isset($GLOBALS['utf_canonical_decomp']))
+ {
+ global $phpbb_root_path, $phpEx;
+ include($phpbb_root_path . 'includes/utf/data/utf_canonical_decomp.' . $phpEx);
+ }
+
$str = utf_normalizer::recompose($str, $pos, $len, $GLOBALS['utf_nfc_qc'], $GLOBALS['utf_canonical_decomp']);
}
@@ -149,10 +155,10 @@ class utf_normalizer
include($phpbb_root_path . 'includes/utf/data/utf_nfkc_qc.' . $phpEx);
}
- if (!isset($GLOBALS['utf_canonical_comp']))
+ if (!isset($GLOBALS['utf_compatibility_decomp']))
{
global $phpbb_root_path, $phpEx;
- include($phpbb_root_path . 'includes/utf/data/utf_canonical_comp.' . $phpEx);
+ include($phpbb_root_path . 'includes/utf/data/utf_compatibility_decomp.' . $phpEx);
}
$str = utf_normalizer::recompose($str, $pos, $len, $GLOBALS['utf_nfkc_qc'], $GLOBALS['utf_compatibility_decomp']);