[Mono-bugs] [Bug 355717] New: FileVersionInfo: Runtime should set fields to zero-length string if filversioninfo is available

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 23 13:53:30 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=355717


           Summary: FileVersionInfo: Runtime should set fields to zero-
                    length string if filversioninfo is available
           Product: Mono: Runtime
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: dick at novell.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


If there's no StringFileInfo table, or if there's no entry for a given key or
if the value is zero-length then the runtime should set the corresponding field
on the FileVersionInfo instance to a zero-length string.

This change is necessary because in .NET 2.0, the string properties of
FileVersionInfo return null if the specified file does not contain an unmanaged
fileversioninfo.

For this to work, we can no longer initialize the fields in FileVersionInfo to
a zero-length string (on the 2.0 profile) and hence this must be done in the
runtime.

This affects both Windows and Linux (so the fix must go in process.c).

To reproduce:
1. apply the patch for FileVersionInfo.
2. extract the gzipped tar containing the repro.
3. run 'make'.

Note:

I sugggest not to commit the patch for FileVersionInfo. I'll commit this
together with other related changes (to mcs, corlib and System) after all
runtime issues have sorted out.

Expected result:

Successful execution (exit code 0).

Actual result:

Unhandled Exception: System.Exception: Expected: , but was: <null>. #A20
  at Assert.AreEqual (System.String x, System.String y, System.String msg)
[0x00
000]
  at Program.Verify1 () [0x00000]
  at Program.Main (System.String[] args) [0x00000]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list