This blog post gives instructions to add (and generate) locales on Debian and Ubuntu systems. The instructions given here work on Debian Etch and newer, and Ubuntu Hardy and newer (including Intrepid, Jaunty and Karmic).
To add the locales
$ echo 'hu_HU.ISO8859-2 ISO-8859-2' | sudo tee -a /var/lib/locales/supported.d/hu $ echo 'hu_HU.UTF-8 UTF-8' | sudo tee -a /var/lib/locales/supported.d/hu $ sudo dpkg-reconfigure locales
To verify that the locales are installed correctly, run the following commands and verify that they don't print anything:
$ LC_ALL=hu_HU.ISO8859-2 perl -e0 $ LC_ALL=hu_HU.UTF-8 perl -e0