[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64051] undo_string_escapes("\0") returns an e
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #64051] undo_string_escapes("\0") returns an empty string |
Date: |
Sat, 15 Apr 2023 22:32:51 -0400 (EDT) |
Update of bug #64051 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #1:
Yes, I think you are correct that the string "\0" should be generated for the
null byte. The code is in libinterp/corefcn/utils.cc:undo_string_escape. It
is quoted below
const char * undo_string_escape (char c)
{
if (! c)
return "";
switch (c)
{
case '\0':
return R"(\0)";
case '\a':
return R"(\a)";
As you can see, it looks like it is supposed to generate "\0".
Marking as confirmed.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64051>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/