Grr. My reply to this was eaten by the ether.
The vagaries of the internet. Such fun. :-)
It's possible that someone could have written this mod
I'm not picking up on how that's not "use-before-def." Either myvar has been previously defined earlier, or it was intended that this value gets picked up by the initial read and works (unless you use myvar elsewhere, in which case the value is likely different than what you want). If you were pointing out the second behavior (as far as I'm aware, the first will still work fine, yes?), then it deserves to fail (they both do, IMO).
I know WeiDU is a bunch of cruft and it must like I add this stuff just for fun
I read the patch notes to see exactly when you added it before posting the message. I don't think it's cruft (or just a case where you thought this or that should do some pointless work), but I did want to acknowledge that I don't see this ever achieving anything on Mac OS X. Pointing out the fact that access positions aren't even checked before they're changed gave me a fall-back position (I know what I'm talking about, honest! :-)). Anyway, thanks for killing the warning message.
which will print like 8-bit garbage
I don't know. Terminal is pretty good about printing high-ASCII and other non-printing characters. I see now that PatchStrRef is passing a dialog.tlk string, so I'm not surprised that works (to save face, I'll point out that you're not actually writing "Imoen" there). Whatever; nothing to pay attention to here.
EDIT: yep, you were right. I must have been running afoul of stupid nul bytes. Sorry.