Greetings to all!
This time I would talk about a problem, which is generally noticed under the LXDE Pups I've ever tried. Maybe it should belong to a more specific topic, but the final result is a gtkdialog shell script, so I decided to write here instead. The problem is:
If I mount an ISO8859-2 FAT32 Pendrive on LXPups, then it shows the accented characters of filenames as a strange symbols, near like x-es. So
later I decided to write a script to solve this problem. This problem is also appear when I use savefile in frugal mode, and the FAT32 Pendrive mounted automatically into the system it shows up also the strange symbols of the accented characters in filenames if the Pendrive has. So after, with help of KuLuSz, I decided to write a gtkdialog script to make the corrected mount procedure more user friendly. The solution was that to use -o option at mount command, and after define the character sets and codepage to mount to, and to mount from. Look like this:
Code: Select all
mount -o iocharset=iso8859-2,utf8,codepage=852 /dev/sdb1 /mnt/sdb1
And my favorite puplet is an LXPup as well, so that is why I would do this.
To solve this problem in frugal mode at boot, where the source filesystem of the savefile is also this vfat Pendrive, I had to edit the initrd
so at this time my remastered LXpup is able to boot with the above described method correctly the iso8859-2 Pendrives in this way too.
However this script is for iso8859-2 and codepage 852, the idea maybe useful for different languages.
(Place the script into /usr/sbin or /usr/bin to get the Reload button work, as mount_32 removed the .gz extension. Change permission to be able to run if necessary.)