mono.git
16 years ago2007-11-05 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 5 Nov 2007 22:04:06 +0000 (22:04 -0000)]
2007-11-05  Geoff Norton  <gnorton@novell.com>

    * darwin_stop_world.c: Correct the structure name on Darwin-x86 for Leopard.

svn path=/trunk/mono/; revision=88924

16 years agodisabling the test so it won't break the buildsystem. I'll look at that again omorrow
Stephane Delcroix [Mon, 5 Nov 2007 21:37:20 +0000 (21:37 -0000)]
disabling the test so it won't break the buildsystem. I'll look at that again omorrow

svn path=/trunk/mcs/; revision=88920

16 years agoAdded run-time GetProcessId API detection for Windows.
Kornél Pál [Mon, 5 Nov 2007 21:27:14 +0000 (21:27 -0000)]
Added run-time GetProcessId API detection for Windows.

svn path=/trunk/mono/; revision=88918

16 years ago* ArrayTest.cs: Improved tests for IEnumerable<T> implementation.
Gert Driesen [Mon, 5 Nov 2007 21:13:42 +0000 (21:13 -0000)]
* ArrayTest.cs: Improved tests for IEnumerable<T> implementation.
* Array.cs: Distinguish between notstarted and finished state when
throwing IOE in Current, and provide meaningful exception message.

svn path=/trunk/mcs/; revision=88917

16 years agoIn Test/System.Drawing:
Sebastien Pouliot [Mon, 5 Nov 2007 21:11:32 +0000 (21:11 -0000)]
In Test/System.Drawing:
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* Image.cs: Add test cases for the stream position when loading and
saving bitmaps and metafiles. Some of them are based on Gert Driesen
samples in #338779

In System.Drawing.Imaging:
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* Metafile.cs: Stream position is not moved for metafiles.

In System.Drawing:
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* gdipFunctions.cs: Add a bool parameter to GdiPlusStreamHelper ctor
to move, or not, the stream position to load/save images.
* Image.cs: Stream position is moved to 0 when loading images from
stream but isn't moved for saving an image to a stream. Fix part of
#338779 (except that Image.FromFile behave differently for metafiles)

svn path=/trunk/mcs/; revision=88916

16 years ago* Control.cs: Remove select call on click. Fixes #325809
Andreia Gaita [Mon, 5 Nov 2007 20:53:36 +0000 (20:53 -0000)]
* Control.cs: Remove select call on click. Fixes #325809

2007-11-05  Andreia Gaita <avidigal@novell.com>

svn path=/trunk/mcs/; revision=88915

16 years ago2007-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 Nov 2007 20:48:19 +0000 (20:48 -0000)]
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* QueueTest.cs: Test cases for #321657. Based on the test case
supplied by Benjamin Lutz.

svn path=/trunk/mcs/; revision=88914

16 years ago2007-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 Nov 2007 20:47:05 +0000 (20:47 -0000)]
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* Queue.cs: Avoid IndexOutOfRangeException after TrimToSize. Patch by
Benjamin Lutz. Fix #321657.

svn path=/trunk/mcs/; revision=88913

16 years ago Test for bug 323247.
Jackson Harper [Mon, 5 Nov 2007 20:45:56 +0000 (20:45 -0000)]
    Test for bug 323247.

svn path=/trunk/mcs/; revision=88912

16 years ago * UriBuilder.cs (ToString): Added Fragment property to the
Jackson Harper [Mon, 5 Nov 2007 20:43:53 +0000 (20:43 -0000)]
   * UriBuilder.cs (ToString): Added Fragment property to the
        return string.

        (Fragment, Query): Properties are no longer set to an empty
        string from version 2.0 and up.

svn path=/trunk/mcs/; revision=88911

16 years ago2007-11-05 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 5 Nov 2007 20:26:20 +0000 (20:26 -0000)]
2007-11-05  Geoff Norton  <gnorton@novell.com>

        * DoubleTest.cs: Add another Parse test handling whitespace (#321704).

svn path=/trunk/mcs/; revision=88910

16 years ago2007-11-05 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 5 Nov 2007 19:31:54 +0000 (19:31 -0000)]
2007-11-05  Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs: Broke compilation for 1.0 builds.

svn path=/trunk/mcs/; revision=88909

16 years ago2007-11-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 5 Nov 2007 19:17:22 +0000 (19:17 -0000)]
2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItem.cs: Add 2.0 Position property getter.

svn path=/trunk/mcs/; revision=88908

16 years ago2007-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 Nov 2007 19:16:33 +0000 (19:16 -0000)]
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* ArrayTest.cs: Add test cases for Enumerator<T>.Reset (#322248).

svn path=/trunk/mcs/; revision=88907

16 years ago2007-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 Nov 2007 19:15:31 +0000 (19:15 -0000)]
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* Array.cs: Fix Enumerator<T>.Reset (#322248).

svn path=/trunk/mcs/; revision=88905

16 years ago2007-11-05 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 5 Nov 2007 19:00:35 +0000 (19:00 -0000)]
2007-11-05  Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs: Added tests for bug #331199.

svn path=/trunk/mcs/; revision=88904

16 years ago2007-11-05 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 5 Nov 2007 18:55:57 +0000 (18:55 -0000)]
2007-11-05  Rodrigo Kumpera  <rkumpera@novell.com>

* Type.cs (MakeGenericType): fix for #331199. If an user-defined type
was used, the runtime would crash. Now we apply UnderlyingSystemType to
all types before handling to the runtime.

svn path=/trunk/mcs/; revision=88902

16 years ago2007-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 Nov 2007 18:27:15 +0000 (18:27 -0000)]
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* MemoryStreamTest.cs: Add test case for #322672 (which seems already
fixed in SVN).

svn path=/trunk/mcs/; revision=88897

16 years ago2007-11-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 5 Nov 2007 17:38:38 +0000 (17:38 -0000)]
2007-11-05  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaSimpleTypeRestriction.cs : implemented value-space
  comparison for enumerations. Actually it is hybrid (it also
  tries literal-space comparison first). Fixed bug #322457 and
  #322458.

  When there is a literal-space match, sometimes you cannot try to
  get TypedValue even if it is valid due to double.Parse() overflow.

svn path=/trunk/mcs/; revision=88894

16 years agoFixed build breakage.
Paolo Molaro [Mon, 5 Nov 2007 17:00:16 +0000 (17:00 -0000)]
Fixed build breakage.

svn path=/trunk/mcs/; revision=88892

16 years ago2007-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 Nov 2007 16:39:05 +0000 (16:39 -0000)]
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* ComVisible.cs: Fix parameter name (part of #322850).

svn path=/trunk/mcs/; revision=88886

16 years ago2007-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 Nov 2007 16:38:21 +0000 (16:38 -0000)]
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* DebuggableAttribute.cs: Don't throw on DebuggingFlags property.
Fix part of #322850.

svn path=/trunk/mcs/; revision=88885

16 years ago2007-11-05 Geoff Norton <gnorton@novell.com>
Geoff Norton [Mon, 5 Nov 2007 16:20:23 +0000 (16:20 -0000)]
2007-11-05  Geoff Norton  <gnorton@novell.com>

    * darwin_stop_world.c: Also push ebp when pushing all stacks on Leopard
    and pre-Leopard.

svn path=/trunk/mono/; revision=88880

16 years ago2007-11-05 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 5 Nov 2007 16:03:42 +0000 (16:03 -0000)]
2007-11-05  Mark Probst  <mark.probst@gmail.com>

* Binder.cs: Treat matches with different argument types as
ambiguous, too.  Fixes #324998.

2007-11-05  Mark Probst  <mark.probst@gmail.com>

* BinderTests.cs: Add test for bug #324998.

svn path=/trunk/mcs/; revision=88879

16 years ago2007-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 Nov 2007 15:51:13 +0000 (15:51 -0000)]
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* StringTest.cs: Re-enabled TestSbytePtrConstructorOverflow[2,4]
since they both works with SVN HEAD.

svn path=/trunk/mcs/; revision=88876

16 years agoadded files to the project
Igor Zelmanovich [Mon, 5 Nov 2007 15:29:46 +0000 (15:29 -0000)]
added files to the project

svn path=/trunk/mcs/; revision=88875

16 years agoadded files to the project
Igor Zelmanovich [Mon, 5 Nov 2007 15:28:09 +0000 (15:28 -0000)]
added files to the project

svn path=/trunk/mcs/; revision=88874

16 years ago2007-11-05 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 5 Nov 2007 15:16:15 +0000 (15:16 -0000)]
2007-11-05  Martin Baulig  <martin@ximian.com>

* mini-trampolines.c
(mono_magic_trampoline): Call mono_debugger_trampoline_compiled()
after compiling the method to notify the debugger.

svn path=/trunk/mono/; revision=88872

16 years agoCosmetic fix.
Martin Baulig [Mon, 5 Nov 2007 14:52:11 +0000 (14:52 -0000)]
Cosmetic fix.

svn path=/trunk/mono/; revision=88870

16 years ago2007-11-05 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 5 Nov 2007 14:49:17 +0000 (14:49 -0000)]
2007-11-05  Miguel de Icaza  <miguel@novell.com>

* SerialPort.cs: Cope with multi-character newlines.  Fixes #321988.

svn path=/trunk/mcs/; revision=88869

16 years agoFtpWebRequest is always 2.0, remove unnecessary ifdefs
Miguel de Icaza [Mon, 5 Nov 2007 14:48:36 +0000 (14:48 -0000)]
FtpWebRequest is always 2.0, remove unnecessary ifdefs

svn path=/trunk/mcs/; revision=88868

16 years ago2007-11-05 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 5 Nov 2007 14:41:37 +0000 (14:41 -0000)]
2007-11-05  Martin Baulig  <martin@ximian.com>

* debug-debugger.h (MonoDebuggerInfo): Use the new breakpoint tables.

svn path=/trunk/mono/; revision=88866

16 years ago2007-11-05 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 5 Nov 2007 14:35:51 +0000 (14:35 -0000)]
2007-11-05 Igor Zelmanovich <igorz@mainsoft.com>

* WebUIValidation_2.0.js:
fixed RegularExpressionValidatorEvaluateIsValid function.

svn path=/trunk/mcs/; revision=88865

16 years agoNew test.
Marek Safar [Mon, 5 Nov 2007 14:22:55 +0000 (14:22 -0000)]
New test.

svn path=/trunk/mcs/; revision=88864

16 years agoNew test.
Marek Safar [Mon, 5 Nov 2007 14:22:15 +0000 (14:22 -0000)]
New test.

svn path=/trunk/mcs/; revision=88863

16 years ago2007-11-05 Stephane Delcroix <sdelcroix@novell.com>
Stephane Delcroix [Mon, 5 Nov 2007 14:21:07 +0000 (14:21 -0000)]
2007-11-05  Stephane Delcroix  <sdelcroix@novell.com>

* class/corlib/System/TimeZone.cs: fix for #323911. The our after DST.Start is already DST.

svn path=/trunk/mcs/; revision=88862

16 years ago2007-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 Nov 2007 13:19:29 +0000 (13:19 -0000)]
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>
* gdipFunctions.cs: Stream position shouldn't be changed when
loading images (bug #338779).
libgdiplus (but it works under Windows, i.e. MS GDI+). #338985

svn path=/trunk/mcs/; revision=88860

16 years ago2007-11-05 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 5 Nov 2007 13:12:32 +0000 (13:12 -0000)]
2007-11-05  Sebastien Pouliot  <sebastien@ximian.com>

* Pen.cs: Add a [MonoLimitation] to Pen's Alignment property so that
the next version of MoMA will report it as not-implemented in
libgdiplus (but it works under Windows, i.e. MS GDI+)

svn path=/trunk/mcs/; revision=88859

16 years ago2007-11-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 5 Nov 2007 10:33:33 +0000 (10:33 -0000)]
2007-11-05  Atsushi Enomoto  <atsushi@ximian.com>

fixed bug #339037.
* AlternateView.cs : CreateAlternateViewFromString() allows null
  Encoding.
* SmtpClient.cs : looks like when Body is null and AlternativeViews
  contains only 1 item, then the alternate view becomes as if it
  were just a body. To make this possible, added couple of more
  transfer-encoding conversion methods.
  For more AlternateViews cases, Body is treated
  as empty. With attachments it is even complicated: those alternate
  views are just in one boundary, so do not send empty string.
  Removed debug output (Console.WriteLine).

  What a mess.

* AlternateViewTest.cs : added test for CreateAlternateViewFromString
  with null Encoding arg.

svn path=/trunk/mcs/; revision=88850

16 years ago2007-11-05 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 5 Nov 2007 09:40:29 +0000 (09:40 -0000)]
2007-11-05  Marek Habersack  <mhabersack@novell.com>

* SessionStateModule.cs: use TimeSpan.TotalMinutes wherever a
session timeout is required, so that sessions do not expire
prematurely. Fixes bug #339026. Patch from Adriaan van Kekem
<adriaanvk@gmail.com>, thanks!

svn path=/trunk/mcs/; revision=88845

16 years ago * ListView.cs: Add 2.0 BackgroundImageTiled property.
Carlos Alberto Cortez [Mon, 5 Nov 2007 05:33:37 +0000 (05:33 -0000)]
* ListView.cs: Add 2.0 BackgroundImageTiled property.
Also, to make it work properly, change item's BackColor and
BackgroundImageLayout as needed.
* ThemeWin32Classic.cs: Don't fill any background rectangle
in ListView.ItemControl when drawing items; just let the Control
base implementation fill it.

2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>

svn path=/trunk/mcs/; revision=88842

16 years ago2007-09-14 Jb Evain <jbevain@novell.com>
Miguel de Icaza [Mon, 5 Nov 2007 03:07:49 +0000 (03:07 -0000)]
2007-09-14  Jb Evain  <jbevain@novell.com>

* Makefile: force the use of the 2.0 mscorlib to compile
the 2.1 mscorlib.dll.

svn path=/trunk/mcs/; revision=88838

16 years ago2007-11-04 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 5 Nov 2007 03:07:24 +0000 (03:07 -0000)]
2007-11-04  Miguel de Icaza  <miguel@novell.com>

        * reflection.c  (mono_param_get_objects): If a parameter has the
        attribute [System.Runtime.InteropServices.Optional] we should
        set the DefaultValue of the ParameterInfo to be
        System.Reflection.Missing instead of DBNull.

        See bug #339013.

        (mono_get_reflection_missing_object): New method,
        returns the System.Reflection.Missing.Value singleton instance.

svn path=/trunk/mono/; revision=88837

16 years ago * ListViewGroup.cs: Adda TypeConverter attribute for this class,
Carlos Alberto Cortez [Mon, 5 Nov 2007 01:10:13 +0000 (01:10 -0000)]
* ListViewGroup.cs: Adda TypeConverter attribute for this class,
as well as adding a custom 'dummy' Converter, as .net does.

2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>

svn path=/trunk/mcs/; revision=88832

16 years ago * PropertyGridView.cs: When clicking drop-down button,
Carlos Alberto Cortez [Mon, 5 Nov 2007 01:06:32 +0000 (01:06 -0000)]
* PropertyGridView.cs: When clicking drop-down button,
select an index in the listbox only if our standard values collection
has one or more items.

2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>

svn path=/trunk/mcs/; revision=88831

16 years ago2007-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 4 Nov 2007 23:24:43 +0000 (23:24 -0000)]
2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
property.

svn path=/trunk/mcs/; revision=88830

16 years ago* PropertyGridTest.cs: Enabled and improved PropertySort tests.
Gert Driesen [Sun, 4 Nov 2007 20:03:56 +0000 (20:03 -0000)]
* PropertyGridTest.cs: Enabled and improved PropertySort tests.

svn path=/trunk/mcs/; revision=88825

16 years ago* PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
Gert Driesen [Sun, 4 Nov 2007 20:02:12 +0000 (20:02 -0000)]
* PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
the value is not changed. This ensure a pushed button remains in that
state when clicked again. When switching the value of PropertySort
between Categorized and CategorizedAlphabetical, do not update the
grid items and do not fire a PropertyChangedEvent. When clicking the
sorting buttons, do not modify the PropertySort value when switching
between Categorized and CategorizedAlphabetical but only update the
button state.

svn path=/trunk/mcs/; revision=88824

16 years agoFix the build
Miguel de Icaza [Sun, 4 Nov 2007 16:42:39 +0000 (16:42 -0000)]
Fix the build

svn path=/trunk/mcs/; revision=88822

16 years ago2007-11-04 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 4 Nov 2007 16:11:04 +0000 (16:11 -0000)]
2007-11-04  Miguel de Icaza  <miguel@novell.com>

* FtpWebRequest.cs (GetResponseStatus): Fix this routine
propertly, refactor, and make it follow Mono coding conventions.

svn path=/trunk/mcs/; revision=88820

16 years ago* Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
Gert Driesen [Sun, 4 Nov 2007 14:36:07 +0000 (14:36 -0000)]
* Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
formatting.
* PropertyGrid.cs: Also put Categorized button in pushed state when
PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
for help description label.

svn path=/trunk/mcs/; revision=88818

16 years agoFix for expected result of 44 test
Arina Itkes [Sun, 4 Nov 2007 11:22:13 +0000 (11:22 -0000)]
Fix for expected result of 44 test

svn path=/trunk/mcs/; revision=88816

16 years agoTARGET_JVM: return flow to the version before revision 80469
Arina Itkes [Sun, 4 Nov 2007 10:30:24 +0000 (10:30 -0000)]
TARGET_JVM: return flow to the version before revision 80469

svn path=/trunk/mcs/; revision=88815

16 years ago2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 4 Nov 2007 02:16:52 +0000 (02:16 -0000)]
2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: When calculating the biggest item for a given column,
take into account 2.0 LIstViewItem.IndentCount, since it directly affects
the item's width.

svn path=/trunk/mcs/; revision=88808

16 years ago2007-11-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 3 Nov 2007 19:29:35 +0000 (19:29 -0000)]
2007-11-03  Atsushi Enomoto  <atsushi@ximian.com>

* DateTime.cs : fix for #330085. for Local time, convert to Utc
  before getting ticks.

* DateTimeTest.cs : test for bug #330085.

svn path=/trunk/mcs/; revision=88800

16 years ago2007-11-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 3 Nov 2007 18:50:48 +0000 (18:50 -0000)]
2007-11-03  Atsushi Enomoto  <atsushi@ximian.com>

* DateTimeFormatInfoTest.cs : enabled test for bug #332553.

svn path=/trunk/mcs/; revision=88797

16 years ago2007-11-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 3 Nov 2007 18:49:47 +0000 (18:49 -0000)]
2007-11-03  Atsushi Enomoto  <atsushi@ximian.com>

* culture-info-table.h : regenerated.

svn path=/trunk/mono/; revision=88796

16 years ago2007-11-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 3 Nov 2007 18:48:31 +0000 (18:48 -0000)]
2007-11-03  Atsushi Enomoto  <atsushi@ximian.com>

* DateTimeFormatEntry.cs, Driver.cs : adjust the count of
  MonthNames and AbbreviatedMonthNames entries to 13.
  Fixed bug #332553.

svn path=/trunk/mono/; revision=88795

16 years agoApply fix from Geoff Norton, for bug Bug 319486
Miguel de Icaza [Sat, 3 Nov 2007 18:02:33 +0000 (18:02 -0000)]
Apply fix from Geoff Norton, for bug Bug 319486

svn path=/trunk/mcs/; revision=88794

16 years ago * ListViewItemTest.cs: Mark RemoveFocusedItem as NotWorking.
Carlos Alberto Cortez [Sat, 3 Nov 2007 17:22:15 +0000 (17:22 -0000)]
* ListViewItemTest.cs: Mark RemoveFocusedItem as NotWorking.
* PropertyGridTest.cs: The same for PropertySort_Valid and
PropertySort_Invalid.

2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>

svn path=/trunk/mcs/; revision=88793

16 years ago2007-11-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 3 Nov 2007 17:11:14 +0000 (17:11 -0000)]
2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItemTest.cs: New tests for 2.0 IndentCount property.

svn path=/trunk/mcs/; revision=88792

16 years ago2007-11-03 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 3 Nov 2007 16:19:38 +0000 (16:19 -0000)]
2007-11-03  Atsushi Enomoto  <atsushi@ximian.com>

* sgen.cs : handle /t option correctly. Exception handling.
  Patch by siokoshou ( http://d.hatena.ne.jp/siokoshou ).

svn path=/trunk/mcs/; revision=88790

16 years ago* PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
Gert Driesen [Sat, 3 Nov 2007 14:26:51 +0000 (14:26 -0000)]
* PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
value for PropertySort on 1.0 profile. PropertySortChanged event
should only be fired on 2.0 profile. Fixed NullReferenceException
in UpdateSortLayout when PropertyGrid contains no items.
* ListViewItemTest.cs: Enabled test for bug #331643 and #330415.
* PropertyGridTest.cs: Added tests for PropertySort.

svn path=/trunk/mcs/; revision=88788

16 years ago* InvalidEnumArgumentExceptionTest.cs: Added ctor tests.
Gert Driesen [Sat, 3 Nov 2007 14:13:27 +0000 (14:13 -0000)]
* InvalidEnumArgumentExceptionTest.cs: Added ctor tests.
* InvalidEnumArgumentException.cs: Fixed default ctor. Modified
message on 2.0 profile for ctor (string, int, Type) to match MS.
* System_test.dll.sources: Added InvalidEnumArgumentExceptionTest.cs.

svn path=/trunk/mcs/; revision=88787

16 years ago* ArgumentExceptionTest.cs: Added trivial ctor tests.
Gert Driesen [Sat, 3 Nov 2007 13:17:17 +0000 (13:17 -0000)]
* ArgumentExceptionTest.cs: Added trivial ctor tests.
* ArgumentException.cs: Change default message to match MS. Removed
unnecessary check from Message, since base.Message can never be null.

svn path=/trunk/mcs/; revision=88786

16 years ago* ApplicationHost.cs: On 2.0, also make PrivateBinPath an absolute
Gert Driesen [Sat, 3 Nov 2007 08:18:57 +0000 (08:18 -0000)]
* ApplicationHost.cs: On 2.0, also make PrivateBinPath an absolute
paths on Windows (and on systems using MONO_IOMAP).

svn path=/trunk/mcs/; revision=88774

16 years ago* HttpRuntime.cs: Always return a path with trailing directory
Gert Driesen [Sat, 3 Nov 2007 08:15:49 +0000 (08:15 -0000)]
* HttpRuntime.cs: Always return a path with trailing directory
separator character. Spaces to tabs.

svn path=/trunk/mcs/; revision=88773

16 years ago2007-11-03 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 3 Nov 2007 01:38:00 +0000 (01:38 -0000)]
2007-11-03  Marek Habersack  <mhabersack@novell.com>

* Control.cs: need to append a "/" to TemplateSourceDirectory
before calling VirtualPathUtility.Combine, in order to get the
correct physical path to the requested file. Combine looks for the
last occurrence of "/" to determine where the relative paths
should be joined.

svn path=/trunk/mcs/; revision=88765

16 years ago2007-11-03 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 3 Nov 2007 00:51:30 +0000 (00:51 -0000)]
2007-11-03  Marek Habersack  <mhabersack@novell.com>

* MinimizableAttributeTypeConverter.cs: don't throw on null value,
call the base class method in that case.
2007-11-03  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: do not call converters specified in
the member custom attributes if 'str' is null in
GetExpressionFromString.

svn path=/trunk/mcs/; revision=88762

16 years ago2007-11-03 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 3 Nov 2007 00:28:48 +0000 (00:28 -0000)]
2007-11-03  Marek Habersack  <mhabersack@novell.com>

* SimpleWebHandlerParser.cs: don't NRE on a null assembly passed
to AddAssembly.
AddAssemblyByName must check the return value of
Assembly.LoadWithPartialName, as the method doesn't throw on
missing assembly, it returns null instead.

svn path=/trunk/mcs/; revision=88761

16 years ago2007-11-03 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sat, 3 Nov 2007 00:04:51 +0000 (00:04 -0000)]
2007-11-03  Marek Habersack  <mhabersack@novell.com>

* ClientScriptManager.cs: eventValidationArray is serialized in an
optimized fashion, so that its serialized form occupies only as
many slots as were actually used. It may result in that an array
of 0 entries will be serialized and then
restored. EnsureEventValidationArray takes that into consideration
now.

svn path=/trunk/mcs/; revision=88759

16 years ago2007-11-03 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 2 Nov 2007 23:02:36 +0000 (23:02 -0000)]
2007-11-03  Marek Habersack  <mhabersack@novell.com>

* ApplicationHostTest.cs: adjust ConstructorTest for
AppDomainSetup.PrivateBinPath changes.
2007-11-03  Marek Habersack  <mhabersack@novell.com>

* ApplicationHost.cs: AppDomainSetup.PrivateBinPath is a list of
full paths on 2.0.
2007-11-03  Marek Habersack  <mhabersack@novell.com>

* HttpApplication.cs: removed unused internal PrivateBinPath
property.

* HttpRuntime.cs: BinDirectory returns a path that ends with the
directory separator character.

svn path=/trunk/mcs/; revision=88756

16 years agoFix a regression of a recent fix = if virtual path is /, do not duplicate the slash
Marek Habersack [Fri, 2 Nov 2007 22:03:58 +0000 (22:03 -0000)]
Fix a regression of a recent fix = if virtual path is /, do not duplicate the slash

svn path=/trunk/mcs/; revision=88749

16 years agoNew test.
Marek Safar [Fri, 2 Nov 2007 21:46:24 +0000 (21:46 -0000)]
New test.

svn path=/trunk/mcs/; revision=88747

16 years ago2007-11-02 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 2 Nov 2007 21:44:40 +0000 (21:44 -0000)]
2007-11-02  Marek Safar  <marek.safar@gmail.com>

  A fix for bug #332909
  * attribute.cs: Resolve attributes in correct context using error
  handling procedure.

  * rootcontext.cs: Define Obsolete attribute members as core members.

svn path=/trunk/mcs/; revision=88746

16 years ago2007-11-02 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 2 Nov 2007 19:29:36 +0000 (19:29 -0000)]
2007-11-02  Jonathan Pobst  <monkey@jpobst.com>

* Picture.cs: Reset the data stream position back to 0 before trying
to convert it into an image.  Fixes bug #325055.

svn path=/trunk/mcs/; revision=88741

16 years ago2007-11-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 2 Nov 2007 17:46:05 +0000 (17:46 -0000)]
2007-11-02  Atsushi Enomoto  <atsushi@ximian.com>

* PathTest.cs: Fixed wrong assumption on GetDirectoryName("/")
  result on Unix (on top level it returns null).

svn path=/trunk/mcs/; revision=88736

16 years agoAdded execution check
Marek Safar [Fri, 2 Nov 2007 17:31:13 +0000 (17:31 -0000)]
Added execution check

svn path=/trunk/mcs/; revision=88735

16 years ago2007-11-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 2 Nov 2007 16:25:26 +0000 (16:25 -0000)]
2007-11-02  Atsushi Enomoto  <atsushi@ximian.com>

* TypeTranslator.cs : for duration, rather use primitiveTypes than
  nameCache, and hence TimeSpan could be serialized just as custom
  type. Fixed bug #338705.

* XmlSerializerTests.cs : added test for bug #338705.

svn path=/trunk/mcs/; revision=88729

16 years ago2007-11-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 2 Nov 2007 16:25:00 +0000 (16:25 -0000)]
2007-11-02  Zoltan Varga  <vargaz@gmail.com>

* SocketTest.cs: Disable the send/receive buffer size tests.

svn path=/trunk/mcs/; revision=88728

16 years ago2007-11-02 Robert Jordan <robertj@gmx.net>
Robert Jordan [Fri, 2 Nov 2007 15:27:20 +0000 (15:27 -0000)]
2007-11-02  Robert Jordan  <robertj@gmx.net>

* ProcessTest.cs (TestRedirectedOutputIsAsync):
Comment out the failing asserts until I've found out why they are
failing.

svn path=/trunk/mcs/; revision=88725

16 years ago2007-11-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 2 Nov 2007 15:16:19 +0000 (15:16 -0000)]
2007-11-02  Zoltan Varga  <vargaz@gmail.com>

* mini-sparc.c (EMIT_COND_SYSTEM_EXCEPTION_GENERAL): Applied patch from
David Miller <davem@davemloft.net>. Allow larger offsets in branches.

svn path=/trunk/mono/; revision=88724

16 years ago2007-11-02 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 2 Nov 2007 14:23:39 +0000 (14:23 -0000)]
2007-11-02  Marek Safar  <marek.safar@gmail.com>

  * statement.cs: Removed unused methods.

svn path=/trunk/mcs/; revision=88723

16 years ago2007-11-02 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 2 Nov 2007 13:49:00 +0000 (13:49 -0000)]
2007-11-02  Jonathan Pobst  <monkey@jpobst.com>

* MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
[Fixes bug #338554]

svn path=/trunk/mcs/; revision=88722

16 years ago2007-11-02 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 2 Nov 2007 13:37:02 +0000 (13:37 -0000)]
2007-11-02  Marek Habersack  <mhabersack@novell.com>

* HttpServerUtility.cs: in 2.0, Transfer is allowed only from
pages. Fixes bug #334931
Also, according to MSDN docs, transfer in 2.0+ is possible only to
other pages.

svn path=/trunk/mcs/; revision=88721

16 years ago2007-11-02 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Fri, 2 Nov 2007 13:00:43 +0000 (13:00 -0000)]
2007-11-02  Jonathan Chambers <joncham@gmail.com>

* icall.c: Use GetEnvironmentStrings on windows
so we are using the same environment block as
GetEnvironmentVariable/SetEnvironmentVariable. Fixes
#333740.

Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=88719

16 years ago2007-11-02 Robert Jordan <robertj@gmx.net>
Robert Jordan [Fri, 2 Nov 2007 12:51:45 +0000 (12:51 -0000)]
2007-11-02  Robert Jordan  <robertj@gmx.net>

* PathTest.cs (TestGetDirectoryName): Fix syntax errors.

svn path=/trunk/mcs/; revision=88718

16 years ago2007-11-02 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 2 Nov 2007 12:27:05 +0000 (12:27 -0000)]
2007-11-02  Marek Habersack  <mhabersack@novell.com>

* HttpRuntime.cs: BinDirectory returns a full path to the actual
bin directory in the application root. If no bin directory is
found, it defaults to returning <applicationPath>/bin. Fixes bug
338116.

svn path=/trunk/mcs/; revision=88717

16 years ago2007-11-02 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 2 Nov 2007 11:12:29 +0000 (11:12 -0000)]
2007-11-02  Marek Habersack  <mhabersack@novell.com>

* HttpApplication.cs: introduced HTTP handler cache to save time
on repetitive handler collection traversals. On busy sites the
traversal of the default 26 handlers may account for thousands of
unnecessary calls to configsystem.LocateHandler method, which may
also involve executing a regex. The cache is cleared whenever the
HTTP handler collection is modified.
2007-11-02  Marek Habersack  <mhabersack@novell.com>

* HttpHandlerActionCollection.cs: clear http handler cache in
HttpApplication if the collection is modified.
2007-11-02  Marek Habersack  <mhabersack@novell.com>

* HandlerFactoryConfiguration.cs: clear the HttpApplication HTTP
handler cache whenever the collection is modified.

svn path=/trunk/mcs/; revision=88716

16 years ago2007-11-02 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 2 Nov 2007 10:09:34 +0000 (10:09 -0000)]
2007-11-02  Marek Habersack  <mhabersack@novell.com>

* FileMatchingInfo.cs: MatchExact should be constructed using the
current application virtual path, not literal "/".

svn path=/trunk/mcs/; revision=88714

16 years ago2007-11-02 Juraj Skripsky <js@hotfete.ch>
Juraj Skripsky [Fri, 2 Nov 2007 09:46:36 +0000 (09:46 -0000)]
2007-11-02 Juraj Skripsky  <js@hotfete.ch>

* AssemblyResourceLoader.cs: As the assembly name is encrypted via
EncryptAssemblyResource, we mustn't UrlEncode it anymore.

svn path=/trunk/mcs/; revision=88713

16 years ago2007-11-02 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 2 Nov 2007 09:37:12 +0000 (09:37 -0000)]
2007-11-02  Atsushi Enomoto  <atsushi@ximian.com>

* StreamReader.cs : Encoding.GetMaxCharCount() does not always return
  the maximum max char count for Decoder.GetChars() since it might
  contain pending buffer by flush. Fixed bug #338370.

svn path=/trunk/mcs/; revision=88712

16 years ago2007-11-02 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 2 Nov 2007 04:41:25 +0000 (04:41 -0000)]
2007-11-02  Miguel de Icaza  <miguel@novell.com>

* Uri.cs (AppendQueryAndFragment): Unescape the query with
excludeSpecial = false.  See bug #320614.

Unlike the patch on that bug, this only unescapes the query and
not the Path.   This keeps our existing tests working.

svn path=/trunk/mcs/; revision=88711

16 years ago * ListViewItem.cs: Implement 2.0 IndentCount property.
Carlos Alberto Cortez [Fri, 2 Nov 2007 04:21:38 +0000 (04:21 -0000)]
* ListViewItem.cs: Implement 2.0 IndentCount property.

2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>

svn path=/trunk/mcs/; revision=88710

16 years ago2007-11-01 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 2 Nov 2007 03:47:10 +0000 (03:47 -0000)]
2007-11-01  Miguel de Icaza  <miguel@novell.com>

* Path.cs (GetDirectoryName): The paths returned from this routine
should be canonical, not just a substring.   In addition to fixing
this, it also fixes #324742.

svn path=/trunk/mcs/; revision=88708

16 years ago2007-11-02 Robert Jordan <robertj@gmx.net>
Robert Jordan [Fri, 2 Nov 2007 01:42:43 +0000 (01:42 -0000)]
2007-11-02  Robert Jordan  <robertj@gmx.net>

* ProcessTest.cs (TestRedirectedOutputIsAsync):
Wait for the pending async operation.

svn path=/trunk/mcs/; revision=88707

16 years ago2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 2 Nov 2007 01:19:57 +0000 (01:19 -0000)]
2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* X11Dnd.cs: When sending status in a dnd operation, compare current
effect with the 'allowed' field instead of 'drag_data.Allowed', since
the later is only created when a Winforms application is both the
source and the target, but not when we are the target only.
Fixes part of #324251.

svn path=/trunk/mcs/; revision=88705

16 years ago2007-11-01 Ivan N. Zlatev <contact@i-nz.net>
Ivan Zlatev [Fri, 2 Nov 2007 00:52:38 +0000 (00:52 -0000)]
2007-11-01  Ivan N. Zlatev  <contact@i-nz.net>

        * CodeDomSerializerBase.cs:
         - Fix deserialization of enums and fields.
         - Fix deserialization of static properties.
         - Instrument the deserialization code to perform a lot more
           error
         checking and aggregate backtrace information.

svn path=/trunk/mcs/; revision=88704

16 years ago2007-11-02 Robert Jordan <robertj@gmx.net>
Robert Jordan [Fri, 2 Nov 2007 00:28:43 +0000 (00:28 -0000)]
2007-11-02  Robert Jordan  <robertj@gmx.net>

* ProcessTest.cs (TestRedirectedOutputIsAsync):
Instrument to see why the build bots are failing.

svn path=/trunk/mcs/; revision=88703

16 years ago2007-11-01 Geoff Norton <gnorton@novell.com>
Geoff Norton [Fri, 2 Nov 2007 00:08:14 +0000 (00:08 -0000)]
2007-11-01  Geoff Norton  <gnorton@novell.com>

    * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
    order of Z-Order.
    * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling
    children out of the drawing view on mac.
    * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
    to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)

svn path=/trunk/mcs/; revision=88702