home bbs files messages ]

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

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

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

   Message 241,375 of 243,242   
   Thiago Adams to All   
   Re: u8"" c11 c23   
   21 Oct 25 07:07:58   
   
   From: thiago.adams@gmail.com   
      
   Em 21/10/2025 05:35, Bonita Montero escreveu:   
   > Am 20.10.2025 um 20:35 schrieb Thiago Adams:   
   >> speaking on signed x unsigned,   
   >>   
   >> u8"a"  in C11 had the type char [N]. Normally char is signed   
   >>   
   >> in C23 it is unsigned char8_t  [N].   
   >>   
   >> when converting code from c11 to c23 we have a error here   
   >> const char* s = u8""   
   >>   
   >>   
   >>   
   >>   
   >>   
   >>   
   >> I generally "cast char* " to "unsigned char*" when handling something   
   >> with utf8. I am not u8"" , I use just " " with utf8 encoded source code   
   >> and I just assume const char*  is utf8.   
   >>   
   >>   
   >   
   > What is there to discuss ? Just cast and that's it.   
      
   When converting code from c11 to c23 we have a error here   
   const char* s = u8""   
      
   I think it is a big change..the ones C does not normally do.   
      
   --- 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