Ticket #10063 (closed defect: worksforme)
regex find fails under Unicode, succeeds in regular build
| Reported by: | widgets | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxMSW | Version: | 2.8.9 |
| Keywords: | unicode regex | Cc: | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
I'm using MS VC++ Express 2008 to compile Dave Silvia's regex tester program using DLLs(using it to verify the same problem in my own unicode app build - see wxWidgets forum http://wxforum.shadonet.com/viewtopic.php?t=21267 ) using the 2.8.9 version of wxWidgets
The regex expression is one of two
Received: from ([[:alnum:][:punct:][:space:]]+?) for <
Received: from ([[:alnum:][:punct:][:space:]]+) for <
The test text:
(excluding the ++++ delimiters)
+++++++++++++++++++++++++++++++++
From - Tue Oct 07 12:09:18 2008
X-Account-Key: account5
X-UIDL: <000301c92868$5f299400$0b2be050@JBAENA>
X-Mozilla-Status: 0001
X-Mozilla-Status2: 10000000
X-Mozilla-Keys:
Return-Path: <rioux2005@…>
Received: from priv-edmwaa02.teldplanet.net ([204.209.205.55])
by priv-edmwes50.teld.net
(InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP
id <20081007103518.EQVT3012.priv-edmwes50.teld.net@…>
for <somebody@…>; Tue, 7 Oct 2008 04:35:18 -0600
Received: from 80.224.43.11.static.user.ono.com (80.224.43.11.static.user.ono.com [80.224.43.11])
by priv-edmwaa02.teld.net (BorderWare Security Platform) with ESMTP id 805A06263C193DFF
for <somebody@…>; Tue, 7 Oct 2008 04:35:11 -0600 (MDT)
From: Chae <rioux2005@…>
+++++++++++++++++++++++++++++++++
Compiling the tester without Unicode support will find the string as expected with either regex. When compiled for Unicode support it will fail to find it. I suppose I could also recompile my own app without Unicode support - and if I have to I will, but I think the regex tester would work quite well as a test app for this problem.
