Perl: Warning: Setting locale failed

Michael Sweet mike at easysw.com
Thu Aug 19 05:19:08 PDT 2004


Anonymous wrote:
> Hi, please help!  Thanks very much for looking at this.  Harry Heim  forharryh at access4less.net
> 
> I have installed CUPS and have spent 2 weeks trying to get it to print (nothing at all job stuck in the print queue). Received this message when trying to do a test page from CUPS Web interface:
> 
> perl: warning: Setting locale failed.
> D [18/Aug/2004:16:04:18 -0700] [Job 1] perl: warning: Please check that your locale settings:
> D [18/Aug/2004:16:04:18 -0700] [Job 1] LC_ALL = (unset),
> D [18/Aug/2004:16:04:18 -0700] [Job 1] LANG = "en"
> 
> I have placed en_US.ISO_8859-1 in every startup (.login, .cshrc, .xinitrc, et al)script I can find for LANG; LC_ALL.  The "env" command shows all is assigned to the variables OK.  Why does Perl not see my locale variables?  How to fix?

It sounds like your app isn't passing in the full locale with the
request (just the language), although I would argue that all of the
UNIX/Linux/BSD distros that don't include generic language localizations
are broken...

> Also, get a bunch of:
> SendError() 8 code=304 (Not Modified)

This is normal; it just means that a browser asked for a file if it
has been modified since a certain date, and the scheduler is returning
status 304 saying that it hasn't.

> Also a new one:
> Unable to open /usr/local/etc/cups/passwd.md5 - No such file or directory

Given that you don't have AuthType BasicDigest or AuthType Digest in
your cupsd.conf file, this should never happen.

> E [18/Aug/2004:16:06:38 -0700] cancel_job: "remroot" not authorized to delete job id 1 owned by ""!
> D [18/Aug/2004:16:06:38 -0700] Sending error: client-error-forbidden
> D [18/Aug/2004:16:06:38 -0700] ProcessIPPRequest: 6 status_code=401

This happens when you try to cancel from another system as root; by
default, we add a small amount of security by mapping remote root
access to the RemoteRoot user (by default, remroot).

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Printing Software for UNIX                       http://www.easysw.com




More information about the cups mailing list