Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Adding Unicode support to a program.

Name: Anonymous 2010-06-11 21:48

I want to add Unicode support to hnb[1]. Do I just replace char to wchar_t and do the same for any other functions that need to be replaced?

_____________________________________________________
[1] http://hnb.sourceforge.net/

Name: Anonymous 2010-06-11 21:54

Try it, see what happens.

Name: Anonymous 2010-06-12 2:45

I'm not familiar with your project, but that's the general gist of it. As long as you're are aware of what code is supposed to be doing what, it'll work, but if you're just replacing every char with wchar_t, you're bound to break many things. For example, the char size might be implied as being 1 in some places, other time char* could be used instead of void* to operate on a buffer, and so on. If you just want to make something read files with unicode filenames, change file access functions and their arguments accordingly, if you want to load/save files containing unicode strings, do that as well changing any processing code, and so on.

You'd probably do well to perform this port in stages and test/make sure each part you've ported to unicode works well.

Name: Anonymous 2011-02-03 7:52

Don't change these.
Name: Email:
Entire Thread Thread List