[Issue 3371] regexp behavior in console and win32 are different

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 7 06:16:55 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3371


Jarrett Billingsley <jarrett.billingsley at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jarrett.billingsley at gmail.c
                   |                            |om
         Resolution|                            |INVALID


--- Comment #1 from Jarrett Billingsley <jarrett.billingsley at gmail.com> 2009-10-07 06:16:54 PDT ---
Uh, no. Windows uses 0-terminated strings, D does not. All you're seeing when
you output the result of the search with the message box is Windows stupidly
reading until it hits a nul character (which, thankfully, D inserts at the end
of string literals, or else you'd probably be getting a segfault here). You
should be using toStringz to convert any D strings to C strings.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list