Adventures with C #1: GLib on Windows with MinGW/MSys using autotools

This is the first document in what may become a series of docs on cross-platform development using pure C (not C++) along with commonly available libraries.

A brief aside about my background for newcomers: I’m experienced with Python and C++ (although admittedly rusty in the latter), and I’ve written straight C as well (in college, for work, for GNU Typist). However, I feel my C skills are not as strong as they could be.

Basically, I know how to program and am not interested in reinventing the wheel. My focus is on developing my skills with practical C development, using any open source available libraries which I can along with, if feasible/possible, the MinGW/MSys toolchain.

This first article is a tutorial of how to use GLib with the autotools on Windows via MinGW/MSys.

[…]

gettext, Python, and Windows: a simple demo

Last time, I discussed some of the issues about localizing a Python app in Windows. This time, I’m providing a simple demo app which shows how localization can be accomplished. To avoid an overly verbose explanation, I’ve set up a GitHub repo with the code, a sample .po file, plus some scripts for easily creating Read more about gettext, Python, and Windows: a simple demo[…]

I18N with gettext and Python on Windows 7

The next major hurdle with J-Ben, which I have not solved yet, involves multi-language support using gettext. In general, Python makes this easy. Python supports gettext-style string substitution via the gettext module. I’ve tested this, and it works great… on POSIX. What about Windows? The problem on Windows is that locale names are different than Read more about I18N with gettext and Python on Windows 7[…]

Kanji searching added to JBLite’s kd2 module

I’ve started to implement searching for kanji from the command line. It’s not much so far, but it may be of mild interest. Japanese search via kunyomi/nanori: C:\code\projects\jblite>c:\python26\python -m jblite.kd2 data\kd2.sqlite3 ほとり Searching for “%ほとり%”, lang=None… READINGS: ID: 2298, literal: 畔 ID: 2396, literal: 瀕 ID: 4368, literal: 滸 ID: 4400, literal: 濆 ID: 5977, Read more about Kanji searching added to JBLite’s kd2 module[…]