It's been a while since I've posted a diary entry, do anyone read these? =)
Today I've tried to add i18n support to the Debian package autolog. The idea was to find out the LANG variable of the process being notified to set the poper message catalog with setlocale. It was more difficult that I've imaged: it seems that the environment variables you can read from /proc/<n>/environ doesn't allow you to access the variables set with VAR=value from the shell or the /etc/profile. All you get is the initial state the shell received. Attaching to the process with gdb and printing environ ((gdb) p ((char**)environ)@30) didn't work either. So it seems I can't ask that feature... shouldn't the locale information of a tty be a property of that tty, easily quieriable... an stty property?
Then I wen to the movies with my girl, I've seen a Spanish movie called "La lengua de las mariposas". Very good, very.. uhm.. moving (is that a right way to say it).