bugDotGNU Portable.NET - Bugs: bug #16553, String from Console.ReadLine() can...


You are not allowed to post comments on this tracker with your current authentication level.

bug #16553: String from Console.ReadLine() can contain whitespaces like \b on cygwin

Submitted by:  Radek Polak <radekp>
Submitted on:  Tue 09 May 2006 06:40:12 AM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Tue 09 May 2006 06:40:12 AM UTC, original submission:  

using System;
using System.IO;

class ConsoleReadLineTest
static void Main(string[] args)
using(StreamWriter sw = File.CreateText("input.txt"))
Console.WriteLine("Type some text and use backspace to delete some chars before hitting ENTER");
using(StreamReader sw = File.OpenText("input.txt"))
if(sw.ReadLine().IndexOf('\b') == -1)
Console.WriteLine("Everything ok");
Console.WriteLine("Input from Console.ReadLine() contains backspace char. Something is wrong");

Radek Polak <radekp>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.





No changes have been made to this item

Back to the top

Powered by Savane 3.9