martin rudalics writes: >> Does the following diff work for you? > > The warnings go away but characters are still displayed as empty > boxes. Right, that's not unexpected since I made a flub on that patch and didn't multiply by sizeof (wchar_t) (I posted a version that fixed that in another message but didn't CC you, sorry). Here's a third version that uses SAFE_NALLOCA instead: