Subject: bug#9960: Compiling Emacs trunk with MSVC

From: Eli Zaretskii <[email-masked]>
Date: Sat, 12 Nov 2011 22:48:00 +0200

> From: Fabrice Popineau <[email-masked]>
> Date: Sat, 12 Nov 2011 18:55:37 +0100
> Cc: [email-masked], [email-masked]
> 
> Something seems to be messed up in the read_escape function :
> it should read the string "[?\\C-0]"
> it reads the 'C' and the '-', then it returns the char '0' + ctrl_modifier,
> and back in read1, the next char read is '0' again.
> Which means that in read1 at the failure point,
> next_char = 0x00000030
> and c = 0x04000030
> 
> I tried to step inside read_escape, but not sure what's going wrong here.

Can you show how the values of the following variables change as you
step through this fragment in read1 and inside read_escape it calls?

  read_from_string_index
  read_from_string_index_byte
  read_from_string_limit