]> sourceware.org Git - systemtap.git/commit
PR11277: Use consistent octal in quoted strings
authorJosh Stone <jistone@redhat.com>
Tue, 16 Feb 2010 03:28:43 +0000 (19:28 -0800)
committerJosh Stone <jistone@redhat.com>
Tue, 16 Feb 2010 23:55:01 +0000 (15:55 -0800)
commit2a818a16b0c371977303e464bfc75ad8814a9c7a
tree8c29ccf8bb1c6a5bba43ce4e9c60516f4cecfc05
parente6364d7923d49c7bfe1a807cd877cb9b29ca0acf
PR11277: Use consistent octal in quoted strings

Previously, our octal escapes used variable lengths, which can lead to
ambiguities.  Also, 8-bit characters would only output the least digit.

* runtime/string.c (_stp_text_str): Always output 3-digit octal escapes,
  and handle 8-bit chars more gracefully.
* testsuite/systemtap.string/text_str.stp: Include an 8-bit character.
* testsuite/systemtap.string/text_str.exp: Above + expect 3-digit octal.
runtime/string.c
testsuite/systemtap.string/text_str.exp
testsuite/systemtap.string/text_str.stp
This page took 0.027254 seconds and 5 git commands to generate.