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,747 of 33,346   
   Alf P. Steinbach to All   
   Re: Nana, a free C++ GUI library, v0.1.1   
   19 Dec 11 00:45:46   
   
   From: alf.p.steinbach+usenet@gmail.com   
      
   On 19.12.2011 03:56, Daniel Krügler wrote:   
   > Am 18.12.2011 09:47, schrieb Alf P. Steinbach:   
   [snip]   
   >>   
   >> The   
   >>   
   >> STR( "Hello, World" )   
   >>   
   >> doesn't say much about which approach that GUI library uses. It could be   
   >> something awful such as Microsoft's TCHAR stuff. Or it could be   
   >> something really nice such as a custom strongly typed character type.   
   >   
   > Agreed. I confess that I assumed that to be a macro instead of a   
   > character (sequence) type.   
      
   Well, it might still be a macro that, for example, translates the   
   literal to a function call producing a reference to a value/array of the   
   strongly typed character type, e.g. like the U macro defined below:   
      
      
      
   #if     CPPX_NATURAL_ENCODING == CPPX_ENCODING_UTF16   
   #   
       CPPX_STATIC_ASSERT( sizeof( wchar_t ) == 2 );   
   #   define CPPX_U_ENCODING ::progrock::cppx::u::Encoding::utf16   
   #   define U( aLiteral ) ::progrock::cppx::u::typed( L##aLiteral )   
   #   
   #elif   CPPX_NATURAL_ENCODING == CPPX_ENCODING_UTF8   
   #   
   #   define CPPX_U_ENCODING ::progrock::cppx::u::Encoding::utf8   
   #   define U( aLiteral ) ::progrock::cppx::u::typed( aLiteral )   
   #   
   #else   
   #   error "The natural encoding for this OS is not supported, sorry."   
   #endif   
      
      
      
   [snip]   
   >> PS: While we're at it, note that V3 (current) of Boost filesystem FAILS   
   >> to deal properly with Windows file names when compiled with g++, due to   
   >> the C++ standard library's lack of support for wide character file   
   >> names. V2 had a not 100% but almost Windows API-based fix, namely short   
   >> 8+3 filenames, which may be forward-ported to V3, or not. But it's   
   >> really a C++ standard library problem, not a Windows API problem.   
   >   
   > I strongly recommend to inform the author of V3 about this problem!   
      
   I did that about two months ago, . Beman Dawes wrote then   
   "If you care enough to open a ticket on the Boost bug tracker, I'll move   
   the V2 code to V3. But there is a big backlog of tickets, so no   
   guarantees as to when that will happen." Which seems to mean that it'll   
   be fixed Real Soon Now(TM), to quote Jerry Pournelle from his Chaos   
   Manor articles in BYTE magazine.   
      
      
   Cheers,   
      
   - Alf   
      
      
   --   
         [ 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