[Mono-bugs] [Bug 341034] New: [2.0, PATCH] Path.GetRandomFileName() returns ugly filenames
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Nov 12 11:55:10 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=341034
Summary: [2.0, PATCH] Path.GetRandomFileName() returns ugly
filenames
Product: Mono: Class Libraries
Version: 1.2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: CORLIB
AssignedTo: mono-bugs at ximian.com
ReportedBy: juraj at hotfeet.ch
QAContact: mono-bugs at ximian.com
Found By: ---
Test case:
==========
using System;
using System.IO;
class Test {
static void Main() {
for(int i = 0; i < 5; i++)
Console.WriteLine(Path.GetRandomFileName());
}
}
Output Mono:
============
[js at leonardo ~]$ mono randtest.exe
ö¹´Ãí¥p.ÿ_
¾h+Dk4.Íø
4Éö`]ë.3Dð
EµcX%E¶.9H
Ì
÷·}.Lö
Output MS.NET:
==============
j23rxtsi.e2b
i5xfnxvo.5lc
2x0i3hlz.rvw
t3bytwjk.keu
1zcgkvwh.lm4
While technically correct, Mono's random filenames are ugly and non-portable
(and the dot at position 8 makes them look like a cruel joke).
The attached patch fixes this.
May I commit?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list