|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #45263] printf('%X', char(x)) returns x in decimal |
Date: | Sun, 07 Jun 2015 15:47:07 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.0.1 |
Update of bug #45263 (project octave): Item Group: Matlab Compatibility => Regression Status: Need Info => Patch Submitted _______________________________________________________ Follow-up Comment #5: I have a patch for this, see attached. Not sure if it's the cleanest way this could be done, but adds special handling for char array arguments to printf functions to make sure the characters are converted to equivalent integral values properly. I think this qualifies for a stable update for the next point release, marking as a regression. (file #34171) _______________________________________________________ Additional Item Attachment: File name: printf-char.diff Size:1 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?45263> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |