Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #11875
| From | "R.Wieser" <address@not.available> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: Something rather odd: results change by adding blank lines to the code |
| Date | 2018-02-28 15:14 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <p76dgp$c06$2@gioia.aioe.org> (permalink) |
| References | <p7630h$1oem$1@gioia.aioe.org> <gj9d9d18fgdsl2oo1i1qgi7hj5mh8cgpci@4ax.com> |
Wally, > Can't say much without seeing some code. Well, your "not much" is quite enough in this case. > Some languages don't play well with the nul character, &h00. > > VBScript could be one of them. Which is most likely the problem. As it turns out (I kept trying to find solutions) I stumbled over a google result which mentioned that ReadAll flunks out when trying to read "binary" content (and even though 'opentextfile' says it can handle unicode, 'ReadAll' apparently cannot), and returns a buffer which is as large as the to-be-read file, but only filled with it upto the first zero .... with the rest filled with whatever was in memory when the string was allocated. > Don't know why the location of your extra line wouldn't matter if > VBScript is getting a &h00 stuck somewhere. My thoughts exactly. But see above. It looks like was just my changing of the source files size which made the string-buffer being allocated from another location, and thus with different garbage. > Same result when opening the file as a different format? Yep, tried that. No difference. Same wonkey behaviour. Regards, Rudy Wieser
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Something rather odd: results change by adding blank lines to the code "R.Wieser" <address@not.available> - 2018-02-28 12:15 +0100
Re: Something rather odd: results change by adding blank lines to the code Wally W. <ww84wa@aim.com> - 2018-02-28 08:05 -0500
Re: Something rather odd: results change by adding blank lines to the code "R.Wieser" <address@not.available> - 2018-02-28 15:14 +0100
Re: Something rather odd: results change by adding blank lines to the code JJ <jj4public@vfemail.net> - 2018-02-28 20:25 +0700
Re: Something rather odd: results change by adding blank lines to the code Wally W. <ww84wa@aim.com> - 2018-02-28 08:38 -0500
Re: Something rather odd: results change by adding blank lines to the code "R.Wieser" <address@not.available> - 2018-02-28 14:55 +0100
Re: Something rather odd: results change by adding blank lines to the code "Mayayana" <mayayana@invalid.nospam> - 2018-02-28 10:01 -0500
Re: Something rather odd: results change by adding blank lines to the code "R.Wieser" <address@not.available> - 2018-02-28 17:16 +0100
csiph-web