Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #12262

Re: file.ReadAll - another quirk

Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder7.news.weretis.net!news.mixmin.net!aioe.org!.POSTED.wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org!not-for-mail
From "R.Wieser" <address@not.available>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: file.ReadAll - another quirk
Date Fri, 22 Nov 2019 18:37:18 +0100
Organization Aioe.org NNTP Server
Lines 24
Message-ID <qr96d7$v89$1@gioia.aioe.org> (permalink)
References <qr39i0$1rne$1@gioia.aioe.org> <nnvg6lcw8zs0$.lzm0ik3jt3ww$.dlg@40tude.net> <qr6p71$21l$1@gioia.aioe.org> <qr6ql2$6v3$1@dont-email.me> <qr6t4k$kht$1@gioia.aioe.org> <1133f73l5pkpq$.1czqy5zm4hvoi.dlg@40tude.net> <qr8t33$1j3e$1@gioia.aioe.org> <qr8tqi$tsl$1@dont-email.me>
NNTP-Posting-Host wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org
X-Complaints-To abuse@aioe.org
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority Normal
X-RFC2646 Format=Flowed; Original
X-Priority 3
X-Notice Filtered by postfilter v. 0.9.2
Xref csiph.com microsoft.public.scripting.vbscript:12262

Show key headers only | View raw


Mayayana,

>  That brings up another issue. UTF-8 was pretty much
> unknown, maybe non-existent, when scrrun came out.

Well, you got me there I'm afraid.   I'm still a bit hazy about the names of 
the different multi-byte encodings.

The "readall" code pulls the read bytes thru the MultiByteToWideChar 
kernel32 function, and stores the two-bytes-per-character result.

> But I very much doubt something like 80 CE 32 would be
> translated to the u-16 equivalent. It just comes through
> (fortunately) as 3 ANSI characters.

I thought that the above MultiByteToWideChar call would take care of that. 
Though there is a possibility that the "readall" code checks for a UTF-8 
header (EF BB BF) before setting a flag to do so.   (I really should 
re-examine the disassembled code some time ...)

Regards,
Rudy Wieser

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-20 12:54 +0100
  Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-20 08:39 -0500
  Re: file.ReadAll - another quirk JJ <jj4public@vfemail.net> - 2019-11-22 00:00 +0700
    Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-21 12:50 -0500
    Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-21 20:39 +0100
      Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-21 15:04 -0500
        Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-21 21:46 +0100
          Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-21 16:31 -0500
            Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-22 09:23 +0100
              Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-22 09:14 -0500
                Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-22 15:58 +0100
          Re: file.ReadAll - another quirk JJ <jj4public@vfemail.net> - 2019-11-22 19:13 +0700
            Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-22 15:47 +0100
              Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-22 10:10 -0500
                Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-22 18:37 +0100
                Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-22 18:40 -0500
                Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-23 09:19 +0100
                Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-23 10:09 -0500
                Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-23 17:36 +0100
      Re: file.ReadAll - another quirk JJ <jj4public@vfemail.net> - 2019-11-22 19:10 +0700

csiph-web