From owner-freebsd-questions@FreeBSD.ORG Tue Sep 8 13:34:28 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 569ED106566B for ; Tue, 8 Sep 2009 13:34:28 +0000 (UTC) (envelope-from spamchannel@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id 0CFED8FC0A for ; Tue, 8 Sep 2009 13:34:27 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 3so785240qwe.7 for ; Tue, 08 Sep 2009 06:34:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=ok0qGA74qsDM0/jWfMAWCa7ij0F3ESMwkO0VzlCxhwU=; b=aka/JUIiJDNYXXTLnqMImQwbqVwXjLJvTPr3ICV7zVz+pAy37JPdHFhMR6FaiSK5ir ghv0fdlo/uLJwHKfpBstnGgVbgncP23Lp0UxVfRFdAhEoiJlNHLJyq4L1+8alFO+e6bN Fph+sRvZdcxXgeLAjIyHsw9MJ319Otug83Q6g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=m4Wd++02N7TDQhrkxS78j4C/7diuOBQt34vbtDTeTas48JmEs44eIXA1G3ruJWbh6r rrd2a5Uq423DEQb1iG9eLXVpwgwvcVJDklSGri4IcN4f+0q0bVpr/zNPELvb8YYRsaPV uizMPUr7FHfYhM2aik9le4IgaeK3uHsofwJoY= MIME-Version: 1.0 Received: by 10.229.119.152 with SMTP id z24mr3946460qcq.97.1252414926472; Tue, 08 Sep 2009 06:02:06 -0700 (PDT) In-Reply-To: <4AA65182.6020200@radel.com> References: <20090908045202.GA16556@thought.org> <4AA5F2FB.8080006@mapper.nl> <4AA65182.6020200@radel.com> Date: Tue, 8 Sep 2009 08:02:06 -0500 Message-ID: <9ca8670b0909080602ud2e4c0bq819251db916b6d3b@mail.gmail.com> From: Jim White To: Jon Radel Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Gary Kline , Mark Stapper , FreeBSD Mailing List Subject: Re: how to get rid of a character, 0x80? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2009 13:34:28 -0000 On Tue, Sep 8, 2009 at 7:43 AM, Jon Radel wrote: > Mark Stapper wrote: > > besides.. 0x80!=0200 >> it's 0200 octal which is 128 decimal... >> Might be why it doesn't work for you. >> > > Don't mess with his head. ;-) > > 0200 = 0x80 = 128 > > 200 octal = 80 hex = 128 decimal > > -- > > --Jon Radel > jon@radel.com > You may want to check if your char type is signed. If it is (and it just happens to be 8 bits wide), (char)128 is a negative value.