TextEditor messing up characters?


#1

When I enter the following string “¤¤¤¤¤¤¤¤” into a TextEditor, the string I get back from TextEditor::getText() is “¤¤¤¤¤¤¤¤” . Since I use the TE for password entry that completely FU the following MD5 hash. Why is there extra chars in the returned string?


#2

Hmm… can’t reproduce this on the mac… Pasting the string above into the juce demo all seems fine AFAICT ?


#3

This is on Windows (Vista). How do you mean it works fine in the demo ? How can you/I tell ? Are you looking at what TextEditor::getText() returns ? In the TextEditor itself it looks fine.


#4

Yeah, I hacked in a DBG to make all TextEditors print out their getText() when changed. It printed the correct string when I tried it.


#5

Ok, you did try on Windows aswell, yes ?


#6

Not yet. Can’t think why it’d be platform specific though, unless the win32 keyboard handler is inserting those extra characters invisibly or something weird…