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


Groups > comp.lang.c++ > #11792

Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles

From "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>
Newsgroups comp.lang.c++
Subject Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles
Date 2011-11-24 18:06 +0100
Organization A noiseless patient Spider
Message-ID <jalti6$70s$1@dont-email.me> (permalink)
References (1 earlier) <dLCdnR3s4_r-x1PTnZ2dnUVZ8lednZ2d@giganews.com> <jalmi6$mfd$1@dont-email.me> <EOmdnTBYiKoj9VPTnZ2dnUVZ7vOdnZ2d@giganews.com> <jalqa1$ek9$1@dont-email.me> <DKednT2SCucq7VPTnZ2dnUVZ8sqdnZ2d@giganews.com>

Show all headers | View raw


On 24.11.2011 17:28, Leigh Johnston wrote:
> On 24/11/2011 16:10, Alf P. Steinbach wrote:
>> On 24.11.2011 16:54, Leigh Johnston wrote:
>>> On 24/11/2011 15:06, Alf P. Steinbach wrote:
>>>> On 24.11.2011 15:53, Leigh Johnston wrote:
>>>>> On 24/11/2011 14:40, Alf P. Steinbach wrote:
>>>>>
>>>>>> http://alfps.wordpress.com/?p=356&shareadraft=4ece5380818f3
>>>>>>
>>>>>> You may have a chance to affect the final posting... :-)
>>>>>>
>>>>>> The link is just to an unfinished draft (maybe I'll complete this
>>>>>> this
>>>>>> evening), but much read-worthy there, I think.
>>>>>
>>>>> Off-topic.
>>>>
>>>> I wouldn't have posted here if I thought it was off topic here.
>>>>
>>>> Despite the lack of a charter for this newsgroup.
>>>>
>>>> It's about using the C++ language and about limitations in the C++
>>>> standard library.
>>>>
>>>> You may of course think that it's environment specific, like,
>>>> "Windows!". And in one very limited sense it is. But on the other hand,
>>>> it is necessary to discuss these details in order to be able to write
>>>> portable C++ code.
>>>>
>>>> As a minimum example, the copy program in Josutti's book, while
>>>> intended
>>>> to be portable and by many people believed to be portable, is not.
>>>> It is
>>>> actually environment specific, while appearing to be portable. While
>>>> the
>>>> code I'm discussing is opposite: it may appear to be
>>>> environment-specific, but is actually in support of portability ;-).
>>>
>>> Your code *is* environment specific; it doesn't just *appear* to be
>>> environment specific hence it is off-topic here; try posting it in a
>>> Micro$oft newsgroup instead.
>>
>> You didn't get the point.
>>
>> But thank you for the advice about posting to Microsoft groups.
>>
>> Although I am sure that you were suggesting that for entirely wrong
>> reasons.
>>
>> Posting to a Microsoft group could in principle be useful for getting
>> some action going so that the same C++ code could be used portably in
>> Windows and Linux (at least). However, I know from experience that such
>> postings are met with hate and disdain from the fanboys that frequent
>> the MS groups. Similarly, Microsoft's very practical suggestion to have
>> source code files start with a BOM, is ridiculed in the *nix Unicode FAQ
>> and other *nix documents. So there's much hate and idiocy on both sides
>> of that historical conflict. I'd rather avoid that.
>>
>> Folks who read this group can instead learn a lot about C++, and help to
>> influence the future, by reading good blogs such as mine. ;-)
>>
>> http://alfps.wordpress.com/?p=356&shareadraft=4ece5380818f3
>
> You are the one who is missing the point; hint: facets.

I liked your earlier comments, but not this one: I'm not much interested 
in broad, purely associative hints.

It's not bad as a first idea when confronted with the issue.

But you can be sure that every person who has confronted that issue, 
including me (but evidently not yourself), has tried it out.

Anyway, to find out the reasons why the locale/facet approach is 
misguided and non-working, you can read my blog postings. :-)

But if a shallow reason is enough, just note that the standard streams 
from <iostream> are not required to honor an imbued locale's codecvt 
facet, and that while that works with Visual C++, the g++ compiler does 
take advantage of the standard's license to not support it. A file 
stream buffer, on the other hand, is explicitly required to use the 
codecvt facet of the imbued locale. See, you learned something today!


> Your code is platform specific so discussing it in this newsgroup would
> cause annoyance to lots of readers who consider such discussion "noise".

I hope that people here can form their own opinions both about the 
alleged facts and how relevant it.

But as it happens, if you'd but click on the link and look at what you 
have so strong opinions about, you'd find an edit field for feedback.


Cheers & hth.,

- Alf

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Request for comments on forthcoming blog posting about Unicode in Windows consoles "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2011-11-24 15:40 +0100
  Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles Leigh Johnston <leigh@i42.co.uk> - 2011-11-24 14:53 +0000
    Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2011-11-24 16:06 +0100
      Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles Leigh Johnston <leigh@i42.co.uk> - 2011-11-24 15:54 +0000
        Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2011-11-24 17:10 +0100
          Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles Leigh Johnston <leigh@i42.co.uk> - 2011-11-24 16:28 +0000
            Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2011-11-24 18:06 +0100
              Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles Leigh Johnston <leigh@i42.co.uk> - 2011-11-24 18:24 +0000
          Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles jacob navia <jacob@spamsink.net> - 2011-11-24 20:16 +0100
            Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles gwowen <gwowen@gmail.com> - 2011-11-25 04:34 -0800
              Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles Leigh Johnston <leigh@i42.co.uk> - 2011-11-25 14:31 +0000
                Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles Tobias Müller <troplin@bluewin.ch> - 2011-11-26 09:20 +0000
              Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles 88888 Dihedral <dihedral88888@googlemail.com> - 2011-11-25 21:50 -0800
  Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles "Liviu" <lab2k1@gmail.c0m> - 2011-11-24 12:30 -0600
    Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2011-11-24 20:31 +0100
      Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles "Liviu" <lab2k1@gmail.c0m> - 2011-11-24 14:10 -0600
  Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles Johannes Schaub <schaub.johannes@googlemail.com> - 2011-11-24 22:20 +0100
    Re: Request for comments on forthcoming blog posting about Unicode in Windows consoles "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2011-11-24 23:27 +0100

csiph-web