Re: soft hyphen and hyphenation

"Sebastian Geerken" <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Mon, Nov 26, corvid wrote:
> I just wanted to mention that if you compile with -pedantic,

I get 633 warnings when I compile with -pedantic. :-) 

> it complains like
> 
> textblock.cc:941:22: warning: overflow in implicit constant conversion [-Woverflow]
> 
> about
> 
>    text[p++] = 0xe2;
>    text[p++] = 0x80;
>    text[p++] = 0x90;

I don't know how to deal best with this, but following change seems to
work:

         text[p++] = '\xe2';
         text[p++] = '\x80';
         text[p++] = '\x90';

Sebastian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.