Re: [Mono-dev] [PATCH] Don't depend on madvise

2009-11-23 Thread Andreas Färber
Thanks, applied in r146769.

Andreas

Am 22.11.2009 um 22:03 schrieb Miguel de Icaza:

> This looks good to me, please apply if you can contribute under MIT/ 
> X11
> terms.
>
>> Hello,
>>
>> Mono appears to check for presence of the madvise function but uses  
>> it
>> unconditionally in mono-mmap.c.
>>
>> If madvise was not detected, the attached patch assumes POSIX-
>> compliant posix_madvise to be present instead.
>> Note that posix_madvise does not seem to have an equivalent to
>> MADV_FREE.
>> http://www.opengroup.org/onlinepubs/95399/functions/posix_madvise.html
>>
>> This patch has been in my queue for some months - it's necessary for
>> Haiku and didn't seem to break the Unices I tested at the time (OSX,
>> Solaris). Please review.
>>
>> Regards,
>>
>> Andreas
>>
>> ___
>> Mono-devel-list mailing list
>> Mono-devel-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [PATCH] XSP: Virtual path support on FastCGI Backend (also resulting in MVC support)

2009-11-23 Thread Marek Habersack
Tiaan Geldenhuys wrote:
Hello,

> This patch adds better support for mapping of ASP.NET virtual paths on 
> the XSP FastCGI Backend (previously it primarily assumed mapping to 
> physical files and directories on the file system).  As a result, MVC 
> now also seems to be working through FastCGI, which extensively uses URL 
> remapping.
> 
>  
> 
> The code includes a few workarounds for an issue I ran into with Mono’s 
> HostingEnvironment.MapPath implementation (comments included), but that 
> can be addressed separately (and the workarounds reworked later).  For 
> now, this patch does at least get things off the ground and it seems to 
> work as expected.
Committed in r146758 (trunk), r146759 (2.6 branch) and r146761 (2.4 branch) - 
thanks!

best,

marek
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Problem with PackagePart URI containing spaces

2009-11-23 Thread mhartmann

Hi,

I entered a new bug entry :
https://bugzilla.novell.com/show_bug.cgi?id=557797 Bug 557797 

Best regards,
Martin


Alan McGovern-2 wrote:
> 
> You want to file it under Mono: Class Libaries product. Unfortunately
> there's no component for the WindowsBase dll, so for the moment just use
> 'System'. I'm going to get in touch with our bugzilla guy and try to get a
> WindowsBase component put up there. If you are filing bugs, do look out
> for
> it as it should be there within a day or so.
> 
> Thanks,
> Alan.
> 
> p.s. You forgot to hit 'reply-all' with your last email. I've added the
> mailing list back into the CC but just look out for that in future.
> 
> On Mon, Nov 23, 2009 at 2:51 PM,  wrote:
> 
>> Hi,
>>
>> can you give me a hint which Product / Component shall I use when I'm
>> entering a new bug?
>>
>> Thanks,
>> Martin
>>
>> Alan McGovern-2 wrote:
>> >
>> > Hi,
>> >
>> > Thanks for the bug report. Would you be able to file the issue on
>> bugzilla
>> > (with the testcase) and assign it to me (amcgov...@novell.com). That
>> way
>> I
>> > can fix it and have the paper trail to verify the fix works.
>> >
>> > If you come across any other issues, just assign them directly to me on
>> > bugzilla.
>> >
>> > Thanks,
>> > Alan.
>> >
>> > On Mon, Nov 23, 2009 at 11:53 AM, mhartmann 
>> wrote:
>> >
>> >>
>> >> Hi,
>> >>
>> >> I'm trying to read packages that were created with System.IO.Packaging
>> on
>> >> a
>> >> Windows machine using .NET.
>> >>
>> >> It seems that that there is a problem with PackageParts that contain
>> >> spaces
>> >> in the specified package URI.
>> >>
>> >> Using the following code produces different results on .NET / Mono:
>> >>
>> >> string fileName = "Test.zip";
>> >> Uri uri = PackUriHelper.CreatePartUri(new Uri("/My Folder/Test.txt",
>> >> UriKind.Relative));
>> >>
>> >> using (Package package = Package.Open(fileName, FileMode.Create))
>> >> {
>> >>PackagePart part = package.CreatePart(uri,
>> >> System.Net.Mime.MediaTypeNames.Text.Plain);
>> >>using (StreamWriter sw = new StreamWriter(part.GetStream()))
>> >>{
>> >>sw.WriteLine("Hello World");
>> >>}
>> >> }
>> >>
>> >> On Linux using Mono the ZIP file contains a folder "My Folder", but
>> with
>> >> Windows and .NET the name of the folder is escaped ("My%20Folder").
>> >>
>> >> Best regards
>> >> Martin
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Problem-with-PackagePart-URI-containing-spaces-tp26476712p26476712.html
>> >> Sent from the Mono - Dev mailing list archive at Nabble.com.
>> >>
>> >> ___
>> >> Mono-devel-list mailing list
>> >> Mono-devel-list@lists.ximian.com
>> >> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>> >>
>> >
>> > ___
>> > Mono-devel-list mailing list
>> > Mono-devel-list@lists.ximian.com
>> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
>> >
>> >
>> Quoted from:
>>
>> http://old.nabble.com/Problem-with-PackagePart-URI-containing-spaces-tp26476712p26478275.html
>>
>>
> 
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-with-PackagePart-URI-containing-spaces-tp26476712p26482340.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Problem with PackagePart URI containing spaces

2009-11-23 Thread Alan McGovern
You want to file it under Mono: Class Libaries product. Unfortunately
there's no component for the WindowsBase dll, so for the moment just use
'System'. I'm going to get in touch with our bugzilla guy and try to get a
WindowsBase component put up there. If you are filing bugs, do look out for
it as it should be there within a day or so.

Thanks,
Alan.

p.s. You forgot to hit 'reply-all' with your last email. I've added the
mailing list back into the CC but just look out for that in future.

On Mon, Nov 23, 2009 at 2:51 PM,  wrote:

> Hi,
>
> can you give me a hint which Product / Component shall I use when I'm
> entering a new bug?
>
> Thanks,
> Martin
>
> Alan McGovern-2 wrote:
> >
> > Hi,
> >
> > Thanks for the bug report. Would you be able to file the issue on
> bugzilla
> > (with the testcase) and assign it to me (amcgov...@novell.com). That way
> I
> > can fix it and have the paper trail to verify the fix works.
> >
> > If you come across any other issues, just assign them directly to me on
> > bugzilla.
> >
> > Thanks,
> > Alan.
> >
> > On Mon, Nov 23, 2009 at 11:53 AM, mhartmann  wrote:
> >
> >>
> >> Hi,
> >>
> >> I'm trying to read packages that were created with System.IO.Packaging
> on
> >> a
> >> Windows machine using .NET.
> >>
> >> It seems that that there is a problem with PackageParts that contain
> >> spaces
> >> in the specified package URI.
> >>
> >> Using the following code produces different results on .NET / Mono:
> >>
> >> string fileName = "Test.zip";
> >> Uri uri = PackUriHelper.CreatePartUri(new Uri("/My Folder/Test.txt",
> >> UriKind.Relative));
> >>
> >> using (Package package = Package.Open(fileName, FileMode.Create))
> >> {
> >>PackagePart part = package.CreatePart(uri,
> >> System.Net.Mime.MediaTypeNames.Text.Plain);
> >>using (StreamWriter sw = new StreamWriter(part.GetStream()))
> >>{
> >>sw.WriteLine("Hello World");
> >>}
> >> }
> >>
> >> On Linux using Mono the ZIP file contains a folder "My Folder", but with
> >> Windows and .NET the name of the folder is escaped ("My%20Folder").
> >>
> >> Best regards
> >> Martin
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Problem-with-PackagePart-URI-containing-spaces-tp26476712p26476712.html
> >> Sent from the Mono - Dev mailing list archive at Nabble.com.
> >>
> >> ___
> >> Mono-devel-list mailing list
> >> Mono-devel-list@lists.ximian.com
> >> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >>
> >
> > ___
> > Mono-devel-list mailing list
> > Mono-devel-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >
> >
> Quoted from:
>
> http://old.nabble.com/Problem-with-PackagePart-URI-containing-spaces-tp26476712p26478275.html
>
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Problem with PackagePart URI containing spaces

2009-11-23 Thread Alan McGovern
Hi,

Thanks for the bug report. Would you be able to file the issue on bugzilla
(with the testcase) and assign it to me (amcgov...@novell.com). That way I
can fix it and have the paper trail to verify the fix works.

If you come across any other issues, just assign them directly to me on
bugzilla.

Thanks,
Alan.

On Mon, Nov 23, 2009 at 11:53 AM, mhartmann  wrote:

>
> Hi,
>
> I'm trying to read packages that were created with System.IO.Packaging on a
> Windows machine using .NET.
>
> It seems that that there is a problem with PackageParts that contain spaces
> in the specified package URI.
>
> Using the following code produces different results on .NET / Mono:
>
> string fileName = "Test.zip";
> Uri uri = PackUriHelper.CreatePartUri(new Uri("/My Folder/Test.txt",
> UriKind.Relative));
>
> using (Package package = Package.Open(fileName, FileMode.Create))
> {
>PackagePart part = package.CreatePart(uri,
> System.Net.Mime.MediaTypeNames.Text.Plain);
>using (StreamWriter sw = new StreamWriter(part.GetStream()))
>{
>sw.WriteLine("Hello World");
>}
> }
>
> On Linux using Mono the ZIP file contains a folder "My Folder", but with
> Windows and .NET the name of the folder is escaped ("My%20Folder").
>
> Best regards
> Martin
> --
> View this message in context:
> http://old.nabble.com/Problem-with-PackagePart-URI-containing-spaces-tp26476712p26476712.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Problem with PackagePart URI containing spaces

2009-11-23 Thread mhartmann

Hi,

I'm trying to read packages that were created with System.IO.Packaging on a
Windows machine using .NET.

It seems that that there is a problem with PackageParts that contain spaces
in the specified package URI.

Using the following code produces different results on .NET / Mono:

string fileName = "Test.zip";
Uri uri = PackUriHelper.CreatePartUri(new Uri("/My Folder/Test.txt",
UriKind.Relative));

using (Package package = Package.Open(fileName, FileMode.Create))
{
PackagePart part = package.CreatePart(uri,
System.Net.Mime.MediaTypeNames.Text.Plain);
using (StreamWriter sw = new StreamWriter(part.GetStream()))
{
sw.WriteLine("Hello World");
}
}

On Linux using Mono the ZIP file contains a folder "My Folder", but with
Windows and .NET the name of the folder is escaped ("My%20Folder").

Best regards
Martin
-- 
View this message in context: 
http://old.nabble.com/Problem-with-PackagePart-URI-containing-spaces-tp26476712p26476712.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list