From 59d97b03b96308dcd413a6740910b8084f0443a5 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 17 Apr 2011 02:11:11 +0000 Subject: activate unsafe fix only in utf8 mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5337 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/include/convert.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pttbbs/include/convert.h b/pttbbs/include/convert.h index d1833b1c..f062069e 100644 --- a/pttbbs/include/convert.h +++ b/pttbbs/include/convert.h @@ -28,7 +28,8 @@ extern void set_converting_type(ConvertMode which); // TODO make DBCS_BIG5 containing all "unsafe" properties #ifndef FT_DBCS_BIG5 #define FT_DBCS_BIG5(c1, c2) { \ - if (b2u_ambiguous_width[((unsigned int)c1 << 8) | c2]) \ + if (convert_mode == CONV_UTF8 && \ + b2u_ambiguous_width[((unsigned int)c1 << 8) | c2]) \ return FTDBCS_UNSAFE; \ } #endif -- cgit v1.2.3