Mar 262009
 

Have to say, it is always a pain to deal with charset and encoding while doing development, especially on Windows.

On Linux things are sort of easy though sometime you still need to tweak things, usually I keep everything in UTF8 – source, messages, text files, etc. It may waste some disk spaces (come on, who cares), but it’s way easy to be compatible with every other tools I’m using.

Now back to Windows – by design everything should be Unicode in modern Windows, I think it started from Windows XP or so, but at least Windows Vista should fully support Unicode, isn’t it? However, there are codepage setting for some applications, and you actually cannot control end user’s environment thus make it really hard to build a software that can run on different Windows.

I’m not an expert on this kind of l10n/i18n issue, but I have to face the problem as I’m coding. With gnat-gps, I now set editor etc. to GB2312, with fonts set to some Simplified Chinese fonts, and then make sure the “Command Prompt” uses GB2312/GBK, then I can use Chinese as comment in source file, also I’m able to output Chinese messages in command window.

I’m going to do some Win32 application so command line is not enough, let’s see how far I can go.

 Posted by at 20:58
Mar 262009
 

Well, do a self-assessment – I’m trying to figure out what I have done wrong in the past couple of days.

First, I should not say “this is not my bug”, I should act as before, take the responsibility, despite of what the problem is, and once the bug located, I should not say that (sounds like blaming somebody else), instead, I should solve the problem first, and leave the judgment to so-called management.

Second, I should not hesitate to talk to others – once it is necessary, I should always go to the person directly and get everything cleared. I tend to think about everything carefully before going to any meeting, actually it is not that bad, but sometime it just a waste of effort. Talk (other than email and IM) is part of communication, and it could be the most efficient one.

Third, and could be the most important one, is taking care of physical health. A strong, energic body can always help everything else, and more specifically, help a lot on maintaining mental healthy.

I’m going to resume my exercise today.

 Posted by at 13:18