[cvs] bogofilter lexer.l,1.31,1.31.2.1
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2002-11-24 22:40:04
|
Update of /cvsroot/bogofilter/bogofilter In directory sc8-pr-cvs1:/tmp/cvs-serv27277 Modified Files: Tag: bogofilter-0_9_0_2 lexer.l Log Message: Convert windows characters 0x92, 0x93, 0x94 to single quote, double quote, double quote. Index: lexer.l =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/lexer.l,v retrieving revision 1.31 retrieving revision 1.31.2.1 diff -u -d -r1.31 -r1.31.2.1 --- lexer.l 24 Nov 2002 20:19:51 -0000 1.31 +++ lexer.l 24 Nov 2002 22:40:01 -0000 1.31.2.1 @@ -325,9 +325,9 @@ while (*buf != '\0') { int ch = *buf; if (ch == 0xA0) *buf = ' '; /* convert no-break space to space */ - if (ch == 0x92) *buf = '\''; /* convert 0x92 to apostrophe */ - if (ch == 0x93) *buf = ' '; /* convert 0x93 to space */ - if (ch == 0x94) *buf = ' '; /* convert 0x94 to space */ + if (ch == 0x92) *buf = '\''; /* convert 0x92 (windows upper single quote) to apostrophe */ + if (ch == 0x93) *buf = '"'; /* convert 0x93 (windows left quote) to quote */ + if (ch == 0x94) *buf = '"'; /* convert 0x94 (windows right quote) to quote */ if (ch == 0xA9) *buf = ' '; /* convert copyright sign to space */ buf += 1; } |