home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 31,673 of 33,346   
   Pete Becker to Goran   
   Re: Wide character command line   
   15 Nov 11 11:42:34   
   
   06dfe9bc   
   From: pete@versatilecoding.com   
      
   On 2011-11-14 17:44:42 +0000, Goran said:   
      
   > On Nov 13, 6:05 pm, Arijit  wrote:   
   >> Hi   
   >>   
   >> I am writing a program which accepts unicode arguments on the command   
   >> line. However there does not seem to be any way to access wide   
   >> character command line arguments in standard c++. No support for int   
   >> main(int argc, wchar_t **argv). Is there any way I can access an   
   >> unicode command line in standard c++ ?   
   >   
   > AFAIK, "wide" is a red herring here. In today's world, we need --   
   > some-- Unicode encoding. "wide" ain't any of that. I personally   
   > believe C++ standard should change to say that "wide" does mean   
   > Unicode (on a target platform), meaning e.g. UTF-8 on (datum being an   
   > octet) Unix and UTF-16LE (datum being two octets) on Windows, and if   
   > someone wants e.g. UTF-32, well, let them.   
   >   
   > Current situation on two major OS-es is that you'd use char* and   
   > presume UTF-8 on Unices, and you'd use wchar_t and presume UTF-16 on   
   > Windows.   
   >   
      
   C++11 has char16_t and char32_t.   
      
   --   
     Pete   
   Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The   
   Standard C++ Library Extensions: a Tutorial and Reference   
   (www.petebecker.com/tr1book)   
      
      
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca