ID:1465459
 
BYOND Version:501
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Firefox 24.0
Applies to:Dream Daemon
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
input() Misinterprets Text Macros

Numbered Steps to Reproduce Problem:
1. Create a project with the code below.
2. Run and invoke the verb.
3. Pay attention to the default text in the dialog. This report does NOT refer to what input() returns.

Code Snippet (if applicable) to Reproduce Problem:
client/verb/testInput()
world << input(src, "Body", "Title", "\improper \red \the Default")


Expected Results:
I'd expect to see "\improper \red \the Default". (Or " Default", not really certain.)

Actual Results:
"mproper ed         heDefault"

Note how the first two chars of each macro are chopped, with the rest remaining. Also notice how '\the' became a tab followed by 'he', and the space before 'Default' was removed.

Does the problem occur:
Every time? Or how often? Every time.
In other games? Yes
In other user accounts? Untested
On other computers? Untested

When does the problem NOT occur? When not using text macros.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Untested

Workarounds:
Manually sanitize text before passing it to input().