Version: startkde (using KDE KDE 3.1.4) Installed from: RedHat RPMs OS: Linux The following part of startkde script fails to fetch proper field of `df' output in Japanese locale environment. Line No. 13 space_tmp=`df /tmp | xargs | cut -d" " -f11` 14 space_home=`df "$HOME" | xargs | cut -d" " -f11` Discussion: The problem is that the `Mounted on' becomes single word in Japanese. Unfortunately, POSIX format 'df -P' doesn't solve this problem because, 'Mounted on' is still translated into Japanese (df's bug?). Since, startkde is /bin/sh script, we can't do space_tmp=`LANG=C df /tmp | xargs | cut -d" " -f11` Possible solution for this is: 13 space_tmp=`df /tmp | xargs | awk '{print $(NF-3)}'` 14 space_home=`df "$HOME" | xargs | awk '{print $(NF-3)}'` Maybe there is much better solution...
Thank you for reporting, but he script that you are describing is not our startkde. It must be one your distribution modified. The lines you are complaining about are not in our scripts. Adding LC_ALL=C before the command seems to be the proper solution. I think that is a valid Bourne-shell construct, though I could be wrong. In any event, if required, you can translate into a multiple-command construct like: space_tmp=`(LC_ALL=C; export LC_ALL; df /tmp | ....)`