All of lore.kernel.org
 help / color / mirror / Atom feed
From: morris@wolfman.com (Jim Morris)
To: lm-sensors@vger.kernel.org
Subject: soloution to tickets 1263 & 1223
Date: Thu, 19 May 2005 06:23:59 +0000	[thread overview]
Message-ID: <20030609231155.3A3C.MORRIS@wolfman.com> (raw)
In-Reply-To: <3EE39074.8020804@wolfman.com>

Hi,

I stumbled on the actual problem here :)

Redhat 9 set the LANG to US_en- UTF8

Th eoperative word here is UTF8, which means that characters are not
always one byte. Also I think there is a bug in th eversion of perl they
ship, so the pack "C", $_[1] is taking an 16 bit character (which should be
one byte) and compalins of an overflow error.

Many programs are suffering from this bug it seems.

I'm not sure of the solution to your script, except the work around is
probably not the patch I sent you, but instead to do an export
LANG=US_en before running your script.

Probably everything that calls outb should check it is sending a byte
not a char. Or put a warning about redhat9 in the Readme or FAQ.

I would actually recommend you take out the patch I sent.


On Sun, 08 Jun 2003 16:19:59 -0400
"Mark D. Studebaker " <mds@paradyne.com> wrote:

mds> 
mds> checked in.
mds> thank you very much.
mds> 
mds> Jim Morris wrote:
mds> > This seems to happen on newer perl versions. It is fatal in as much as 
mds> > the sensors are not detected. The solution appears to be to simply add & 
mds> > 0x7f to the pack statement at line 1138 of sensors_detect...
mds> > 
mds> > sub outb
mds> > {
mds> >   my $towrite = pack( "C", $_[1] & 0x7f);
mds> > 
mds> > 
mds> > hope this helps
mds> > 
mds> 

--
Jim Morris morris@wolfman.com

      parent reply	other threads:[~2005-05-19  6:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:23 soloution to tickets 1263 & 1223 Jim Morris
2005-05-19  6:23 ` Mark D. Studebaker 
2005-05-19  6:23 ` Jim Morris
2005-05-19  6:23 ` Jim Morris [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030609231155.3A3C.MORRIS@wolfman.com \
    --to=morris@wolfman.com \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.