More CentOS stuff
#87 Henry, Friday, 18 March 2011 2:07 PM (Category: Linux)
(Tags: centos)

I have been plagued with another issue. On most servers at work, I can compile a program and get warnings like this:

../c/dispatch_email.c:313: warning: format '%ld' expects type 'long int',
but argument 6 has type '__pid_t'

But one server issues this for that same warning:

../c/dispatch_email.c:313: warning: format â expects type â,
but argument 6 has type â

I ran into this again today and got irritated enough to try and stop it. First thing - what sort of box is this? Oh, it's CentOS again. And LANG is set to en_US.UTF-8 again. I did this again:

export LANG=en_US

recompiled the program and got good warnings again without any hint of â.

I don't know if this is a default chosen by CentOS or if it was chosen by the guy who installed it. But now I know what it is, I can work around it.

0 comments