Custom implementation of gettext


#1

(Apologies if this is in the wrong forum)

Hi,

I was browsing the source code and noticed that you use your own implementation of gettext rather than the functions provided by the GNU version.

Is there a reason for this? I only ask because my game uses GNU gettext and has problems rendering some character sets on Windows (Russian, Polish etc.) but not on Linux.

Any help would be appreciated.

Thanks

Richard


#2

Mostly to be lightweight, I think.

We hate dependencies, because they’re an albatross around the neck of a software project - especially across platforms. It’s already a fairly enormous pain for me to cook up stuff like boost in a distributable form - if we add several more libraries, there’s eventually a tipping point where it becomes too much trouble, and platforms don’t get supported.

The other reason as you pointed out, is consistency - something built-into the game can be relied on to always work the same way. When in the worst-case scenario, which is linking to a library on the user’s system (outside our control), things sometimes don’t work right.


#3

Cool, thanks for your help!