Thread overview | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
February 27, 2018 [Issue 18532] Hex literals produce invalid strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18532 --- Comment #1 from FeepingCreature <default_357-line@yahoo.de> --- Update: std.conv.hexString does not validate its return value either. -- |
February 27, 2018 [Issue 18532] Hex literals produce invalid strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18532 Basile B. <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |b2.temp@gmx.com --- Comment #2 from Basile B. <b2.temp@gmx.com> --- It doesn't have to. hexString isn't even design to represent strings literals, it can be a memory dump as well that can be cast to ubyte[]. -- |
February 27, 2018 [Issue 18532] Hex literals produce invalid strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18532 --- Comment #3 from FeepingCreature <default_357-line@yahoo.de> --- It has to, because it returns string and string is defined to be UTF-8. If it wants to return something that is not UTF-8, it should return ubyte[], and you should have to cast it to string explicitly. -- |
February 28, 2018 [Issue 18532] Hex literals produce invalid strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18532 --- Comment #4 from anonymous4 <dfj1esp02@sneakemail.com> --- I'd say the spec just specifies encodings for strings, meaning that it can't be something else like EBCDIC or cp1252. There was a debate whether invalid utf violates type system and an idea that invalid utf can produce an exception, a replacement character or be ignored. -- |
February 28, 2018 [Issue 18532] Hex literals produce invalid strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18532 --- Comment #5 from anonymous4 <dfj1esp02@sneakemail.com> --- https://forum.dlang.org/post/nh2o9i$hr0$1@digitalmars.com - I suppose discussion was there. -- |
March 21, 2020 [Issue 18532] Hex literals produce invalid strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18532 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|b2.temp@gmx.com | -- |
December 17, 2022 [Issue 18532] Hex literals produce invalid strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18532 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P4 -- |
December 13 [Issue 18532] Hex literals produce invalid strings | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18532 --- Comment #6 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17847 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation