From: "ian martins" <ianxm@hotmail.com>
Subject: problem with hexlify-buffer
Date: Wed, 17 Apr 2002 12:11:19 -0800 [thread overview]
Message-ID: <LAW2-F52KULPEhGD1Xy00001228@hotmail.com> (raw)
I'm using emacs-21.2.1 on win2k, compiled with nmake. (I tried some earlier
versions also, and got the same result)
when I look at binary file with only an integer (32 bit) value of 60 or
greater in it using emacs hexl-mode, it says:
00000000: 81a0 0000 00 .....
it should say:
00000000: a00 0000 .....
I've viewed the file with a different hex viewer and also xemacs and they
both worked. for all values greater than 60 emacs sticks a hex "81" in front
of the correct bytes.
in case it saves someone time, here is some c code that will create two
files, one containing an integer value "59" (which emacs reads correctly)
the other contains an integer 60 (which doesn't work for me)
#include <stdio.h>
void main()
{
FILE *fout1, *fout2;
int n1 = 159;
int n2 = 160;
int *p1 = &n1;
int *p2 = &n2;
fout1 = fopen("f159.good","wb");
fwrite(p1, sizeof(int), 1, fout1);
fout2 = fopen("f160.bad","wb");
fwrite(p2, sizeof(int), 1, fout2);
fclose(fout1);
fclose(fout2);
}
please ask if I've left out needed info.
Ian Martins
ianxm@hotmail.com
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
next reply other threads:[~2002-04-17 20:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-17 20:11 ian martins [this message]
2002-04-17 21:41 ` problem with hexlify-buffer fabrice bauzac
2002-04-18 6:20 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2002-04-18 13:26 ian martins
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=LAW2-F52KULPEhGD1Xy00001228@hotmail.com \
--to=ianxm@hotmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.