bug... in InvalidPathChars

  • Thread starter Thread starter David Krmpotic
  • Start date Start date
D

David Krmpotic

string s = "";

for(int i = 0; i< Path.InvalidPathChars.Length; i++)

{

s += Path.InvalidPathChars + " ";

}

MessageBox.Show(s);





shows only " | < >



but there should be at least two more: ? and *



Can you confirm the bug or is that normal behaviour (how could it possibly
be?)



david
 
These chars are not meant to be displayed in windows using MessageBox.Show.
One of the chars is a null (0x0000) character (and Show drops all chars
behind the null) while others cannot be displayed or displayed correctly.

Willy.
 
Back
Top