Re: More MSDN lies: RtlStringCchLength

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx> wrote in message
news:uhacgHDrFHA.2996@xxxxxxxxxxxxxxxxxxxxxxx
>> you are getting really hung up on TCHAR.
>
> Because I saw it used, and I saw headers make it available.

You have been told that this is strictly because some headers are used for
both kernel and user mode code; in the latter case, TCHAR must be supported.
Don't use it in kernel mode, and you'll be fine. I do not use it even in
user mode.

[...]

> For more than 20 years your company has been shipping OSes with multibyte
> characters for ANSI

Windows 1.0 was shipped on 20-Nov-1985, and that's less than 20 years, so
you must be talking about MS DOS 3.x. I do not think MS DOS ever supported
multi-byte characters; at any rate, I am not aware of any standard
multi-byte encoding that gained universal acceptance until early nineties.
Even extended _single_ byte encodings were in a great state of confusion
well into mid-nineties, and even now I accidentally come across supposedly
Cyrillic encodings that must be literally deciphered -- which I usually
avoid doing ;-)

S



.



Relevant Pages

  • XNEWS: Are Bugs Going to Be Fixed?
    ... Speaking of Xnews bugs going unfixed, such as font sizes and Word_Wrapping, ... raw 8-bit encodings in headers, the sheer plethora of encodings, ... My newsreader, X, uses MLang to decode 8 bits headers any which way, ... instead of raw 8bits. ...
    (news.software.readers)
  • Re: Typesetting email automatically (macro package?)
    ... [insert entire email message, unedited] ... the headers: i've just looked at one from the upload system at ... third, encodings: you have to guess, for example, whether the encoding ... within mails to be recognised? ...
    (comp.text.tex)
  • Re: List of available C library functions?
    ... Recently I read some kernel mode code that contained some declarations of TCHAR but also called strlenand other such stuff. ... If TCHAR turned out to be wchar_t then I would expect the code I was reading to yield BSODs or worse. ... I modified the code to be TCHAR clean and compiled it both ways, but now am uncertain if that was a wasted effort, since maybe I should have just changed the TCHAR declarations to char. ... They can't all be moved out to user mode. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: some kernel headers broken in current git ?
    ... this is *user mode* code at this point? ... Linux kernel headers aren't includable from user space without ... Then use the linux bool type for all the stuff include here. ... But I also notice that it latest source from VirtualBox the ...
    (Linux-Kernel)
  • Re: some kernel headers broken in current git ?
    ... this is *user mode* code at this point? ... Linux kernel headers aren't includable from user space without ... and your "full error log" weblink is ...
    (Linux-Kernel)