Tech Off Thread

12 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Bug in Microsoft Edit Control

Back to Forum: Tech Off
  • User profile image

    I think I found a bug in the Edit control that is e.g. used by Notepad. To reproduce the bug do the following: 1. Create a new .txt file 2. Open it with Notepad 3. Write "aaaaaaaa aaaaa aaa aaaaa" without the quotes (other letter combinations also work but not all) 4. Close and save the file 5. Open the file again with Notepad Now you should see squares instead of letters. Maybe you can pass the bug to the responsible developer. Smiley

  • User profile image

    It seems to work - it's really strange Perplexed

  • User profile image

    I can verify this as well

  • User profile image

    Yep, I can repro that on XP SP2 and 2003 SP1. Isn't it amazing how bugs like this can lay dormant for so long in frequently-used software like notepad!

  • User profile image

    It would appear that an even number of letters followed by two groups of an odd number of letters seems to reproduce the problem. So, for example, this is also a problem: "qq qqq qqq".

  • User profile image

    Notepad seems to treat it as unicode.

    I see chinese characters when opening up "aa aaaaa aaaaa", but I know I have that character set installed.

    Wordpad opens it fine.

  • User profile image

    If you save it as unicode, instead of ansi, the correct data is retained.

  • User profile image

    I can verify this potential bug too, could any body here explain the reason behind it? From the very begining when I saw this thread, I just thought it might be the text encoding problem, but after my close examination, it's not:(


  • User profile image

    I have Tablet PC Editition 2005 and the bug works there too.

    Of interesting note, I created the string in notepad and then opened the file up in Textpad and there was no issue. I also created the string in Textpad and opened in notepad and the squares come up again. So it looks like it doesn't have anything to do with the saving process in notepad.

  • User profile image

    dude, you're right!

  • User profile image

    Yup, I get:



  • User profile image

    As always, Raymond Chen can tell you why this is


Conversation locked

This conversation has been locked by the site admins. No new comments can be made.