it's Suse linux 8.2. Independent which "LANG" or rather the "locale" I define the result is the same...
(I don't have experience with Suse.) Are you sure it's not working, even with LC_ALL set to blank?
$ LC_ALL= amreport ...
Try this one (there was a bug in some old version of glib concerning where it checked for CHARSET in some obscure cases.)
$ CHARSET=us amreport ...
Thankx for your help - Leo
*Jon LaBadie <[EMAIL PROTECTED]>* Gesendet von: [EMAIL PROTECTED]
01/20/2004 09:10 AM Bitte antworten an amanda-users
An: [EMAIL PROTECTED]
Kopie: Thema: Re: amreport
On Tue, Jan 20, 2004 at 08:51:35AM +0100, [EMAIL PROTECTED] wrote: > Hi, > > I would like to send the summary report of amanda via e-mail to the > "mailto" user as defined. But if the command "amreport Config -l > log.YYYYMMDD.x" will be started I get the message: > > Cannot convert from ANSI_X3.4-1968 to iso-8859-1 > Invalid argument > ...message not sent. > amreport: mail command failed: /usr/bin/Mail -s "DailySet1 AMANDA MAIL > REPORT FOR date,2004" amanda > > Obviously there something wrong with codepage translation or > whatever...Sadly i didn't solve the problem yet.
OS??
Solaris, maybe others too, uses environment vars to set the "locale". On Solaris the vars are LANG and a series of LC_xxxx vars where xxx includes CTYPE, TIME, ... and also "ALL" which overrides the other LC's.
Try running your amreport command with the vars set to appropriate locales for your OS. One will probably be "C", so my example uses that:
LANG=C LC_CTYPE=C LC_ALL=C amreport <config> -l log.xxxxxxx
This will set (or change) the vars just for the running of the amreport cmd.
-- Paul Bijnens, Xplanation Tel +32 16 397.511 Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512 http://www.xplanation.com/ email: [EMAIL PROTECTED] *********************************************************************** * I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, * * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, * * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, * * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, * * kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... * * ... "Are you sure?" ... YES ... Phew ... I'm out * ***********************************************************************