[Mono-dev] Fix shadow copy and define UNICODE on windows

Jonathan Chambers joncham at gmail.com
Thu Mar 8 14:12:42 EST 2007

Here is a patch that fixes shadow copy on windows, and also sets UNICODE and
_UNICODE in configure.in on windows. I was getting warning in VS that some
Win32 functions we were calling was using the ANSI version (meaning UNICODE
was not getting defined in some places) even though we were passing Unicode
strings. Also, I changed a macro in mono-dl.c to a function so I could
convert the utf8 string to utf16.

One question about shadow copy, do I/we need to worry about UNC paths, i.e.
\\location\blah. My code assumes a drive letter based path, C:\ etc.

I never messed with configure.in before, so please make sure I put the
defines in the right and correctly. Also, I'll fix the vcproj's after this
patch (the need to be set to use Unicode).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070308/337b3ffc/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unicode_patch.diff
Type: text/x-patch
Size: 6012 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070308/337b3ffc/attachment.bin 

More information about the Mono-devel-list mailing list