Aric Stewart : usp10: Add a few chars that Windows itemizes as punctuation.
Alexandre Julliard
julliard at winehq.org
Tue Nov 8 12:23:12 CST 2011
Module: wine
Branch: master
Commit: cd3d305b6040c6e46ceed97603c22ef45c46a668
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cd3d305b6040c6e46ceed97603c22ef45c46a668
Author: Aric Stewart <aric at codeweavers.com>
Date: Tue Nov 8 10:33:43 2011 -0600
usp10: Add a few chars that Windows itemizes as punctuation.
---
dlls/usp10/usp10.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index 2a6107e..a19ed81 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -494,6 +494,10 @@ static WORD get_char_script( WCHAR ch)
if (ch == 0xc || ch == 0x20 || ch == 0x202f)
return Script_CR;
+ /* These chars are itemized as Punctuation by Windows */
+ if (ch == 0x2212 || ch == 0x2044 || ch == 0x00a0)
+ return Script_Punctuation;
+
GetStringTypeW(CT_CTYPE1, &ch, 1, &type);
if (type == 0)
More information about the wine-cvs
mailing list