On Tue, Nov 27, 2012 at 06:22:34PM +0100, Sebastian Geerken wrote:
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';
I know, I brought this up in the first place, but now I noticed, that the unconditional hyphen (0xe2 0x80 0x90) seems not be available in all fonts (e.g. I only see squares for it on heise.de). So maybe a hyphen-minus aka '-' might be simpler and commonly available (also see [1]). What do you think? Cheers and sorry for the confusion, Johannes [1] http://www.cs.tut.fi/~jkorpela/dashes.html