[bug #68492] Unexpected result when indexing with char's, esp. ':'
Matthias Jüschke <[email protected]> Tue, 30 Jun 2026 12:21:49 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
--===============5615236449573223766==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
UGxlYXNlIHVzZSB0aGUgYnVnIHRyYWNrZXIgdG8gcG9zdCB1cGRhdGVzIHRvIGEgYnVnIHJlcG9y
dC4gIFRoZSBtYWlsaW5nIGxpc3QgaXMgaW50ZW5kZWQgYXMgYSByZWFkLW9ubHkgbm90aWZpY2F0
aW9uIHN0cmVhbS4gIEluZm8gcG9zdGVkIHRvIHRoaXMgbWFpbGluZyBsaXN0IGFkZHJlc3Mgd29u
J3QgYXBwZWFyIGluIHRoZSB0cmFja2VyIGRhdGFiYXNlIHdoZXJlIGl0IGlzIG1vc3QgdXNlZnVs
LgoK
--===============5615236449573223766==
Content-Type: MULTIPART/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; BOUNDARY="8323329-1714636915-1782836509=:1160425"
Content-Disposition: inline
--8323329-1714636915-1782836509=:1160425
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline
URL:=0A <https://savannah.gnu.org/bugs/?68492>=0A=0A Summa=
ry: Unexpected result when indexing with char's, esp.=0A':'=0A =
Group: GNU Octave=0A Submitter: maju=0A S=
ubmitted: Di 30 Jun 2026 16:21:44 UTC=0A Category: None=0A =
Severity: 3 - Normal=0A Priority: 5 - Normal=
=0A Item Group: Incorrect Result=0A Status: N=
one=0A Assigned to: None=0A Originator Name: Maju=0A =
Originator Email:=0A Open/Closed: Open=0A Discussi=
on Lock: Unlocked=0A Release: 8.4.0=0A Operating Sys=
tem: GNU/Linux=0A Fixed Release: None=0A Planned Release:=
None=0A=0A=0A _______________________________________________________=
=0A=0AFollow-up Comments:=0A=0A=0A-----------------------------------------=
--------------=0ADate: Di 30 Jun 2026 16:21:44 UTC By: Matthias J=C3=BCs=
chke <maju>=0AIndexing with char's gives no warning. However, when the cha=
racter is ':'=0A(char(58)), it is not interpreted as 58; the full array is =
returned.=0A=0Adum=3D1:68; % 68=3D=3Duint8('D')=0AidxChar=3D'AB:CD';=
=0Afor i=3DidxChar=0A disp(size(dum(i)))=0Aendfor=0A=0Agives=0A=0A 1 1=
=0A 1 1=0A 68 1=0A 1 1=0A 1 1=0A=0A=0A=0A=0A=0A=0A=0A=0A=
=0A _______________________________________________________=0A=0AReply t=
o this item at:=0A=0A <https://savannah.gnu.org/bugs/?68492>=0A=0A________=
_______________________________________=0ANachricht gesendet =C3=BCber Sava=
nnah=0Ahttps://savannah.gnu.org/=0A
--8323329-1714636915-1782836509=:1160425
Content-Type: APPLICATION/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCakPtHQAKCRCqLAuaBUf3
TowRAQDx21UH/LJhmilzizp1RFnM5Ls5Va0XaHqAilMZoVMIxAEA6zCwIrI5DZYG
4mel7Sscy7oF4xmMqDVomGZ3lixV7wI=
=DqKg
-----END PGP SIGNATURE-----
--8323329-1714636915-1782836509=:1160425--
--===============5615236449573223766==--