Full international character support for system clipboard

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
est31
Posts: 14
Joined: Wed Sep 02, 2015 7:17 am

Full international character support for system clipboard

Post by est31 »

Hello,

It would be cool for irrlicht to support a real stringw/wchar_t * based clipboard, for internationalized text. Current clipboard supports only extends from 0 to 255. That means that if your wchar_t type is UCS based (its that way on all platforms I think), then anything above U+0FF doesn't work. This means for example cyrillic text, which works fine to be entered in 1.9 gui text boxes, becomes garbled output when copying it inside the irrlicht based application and, pasting it on another application. The bug isn't limited to cross application pasting, it also is a problem with pasting within the application, something which is a different matter at least in X11 based clipboard handling.

Fellow minetest dev ShadowNinja has made this reference patch which should at least improve the situation for linux/X11: http://sprunge.us/ijCY

Note that it doesn't build yet and therefore wasn't tested, but it can serve as a reference on how to get it work with X11.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Full international character support for system clipboar

Post by CuteAlien »

Thanks. No promise when I get to it, as I'm not working much on Irrlicht these weeks. I hope I'll be back soon to work on my Irrlicht todo-list again.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply