#424 Issue closed: tsm + LC_*

Labels: enhancement, support / question

tyl0re opened issue at 2014-06-12 11:09:

TSM Client uses LC_CTYPE for Restoring files.
With LC_CTYPE=C tsm is unable to restore öäüß,..... ( Mashine on LC_CTYPE="en_US.UTF-8" for example)

Would it be Possible to make an Setting for TSM.
So it is possible to set only for TSM another Environment, so Restoring special Character gets possible?
Error:
ANS1154E Object name '/data/Neugesch¦ft' contains an i nvalid multibyte sequence for the current locale.
** Unsuccessful **

schlomo commented at 2014-06-12 12:58:

Maybe we should somehow clone these variables from the source system?

On 12 June 2014 13:09, tyl0re notifications@github.com wrote:

TSM Client uses LC_CTYPE for Restoring files.
With LC_CTYPE=C tsm is unable to restore öäüß,..... ( Mashine on
LC_CTYPE="en_US.UTF-8" for example)

Would it be Possible to make an Setting for TSM.
So it is possible to set only for TSM another Environment, so Restoring
special Character gets possible?


Reply to this email directly or view it on GitHub
https://github.com/rear/rear/issues/424.

tyl0re commented at 2014-06-12 13:13:

We have had some Problems on some server so we used because user using öä via samba, even if the system doesn't have the right Enviroment
So we used:

/etc/inittab
TSM:2345:respawn:env LC_ALL=de_DE@euro /usr/bin/dsmc sched >/dev/null 2>&1

for backup. And i think also common is using an init Script to Start Sheduler for backup. So it isnt always the same of the server, so it would be useful when it can be overwritten manually via /etc/rear/local.conf

gdha commented at 2014-06-16 09:16:

@tyl0re @schlomo We could foresee a LANG=${LANG_RECOVER} dsmc ... and when $LANG_RECOVER is empty make it by default C?

tyl0re commented at 2014-06-16 10:05:

Yes, but i think it should be LC_ALL for all Variables
LC_ALL=${LANG_RECOVER} dsmc.... ; LC_ALL=C

gdha commented at 2014-06-25 14:20:

@tyl0re [master d33cc9c] define a new variable LANG_RECOVER in default.conf file which is used via LC_ALL=$LANG_RECOVER dsmc in the different scripts used by TSM workflow;
forgot to mention the issue nr in the commit

tyl0re commented at 2014-10-21 08:31:

Forgot to close since its working


[Export of Github issue for rear/rear.]