Open Vsirer opened 1 year ago
'\x59\x3c\x5c\x52\x18'
was transferred to "Y<\R\030"
in C , so the \x5c
=> \
in the string. It is treated as a escape control char.
'\x59\x3c\x5c\x52\x18'
was transferred to"Y<\R\030"
in C , so the\x5c
=>\
in the string. It is treated as a escape control char.
So is this a normal result?
My suggestion is not to use string store binary data.
Describe the bug
I use str.bytes() to create a byte array and the result of a manually created byte array is different
Expected Behavior
I use golang to test, the results are the same in both ways
Current Behavior
In vlang, the results of the two methods are different. In str.bytes(), 5c is missing
Reproduction Steps
Possible Solution
No response
Additional Information/Context
V version
V 0.3.4 6698fe4
Environment details (OS name and version, etc.)
V full version: V 0.3.4 c4b34c9.6698fe4 OS: windows, Microsoft Windows 11 Home China v22621 64-bit Processor: 16 cpus, 64bit, little endian,
getwd: C:\Users\V vexe: C:\Software\v\v.exe vexe mtime: 2023-05-23 13:49:56
vroot: OK, value: C:\Software\v VMODULES: OK, value: C:\Users\V.vmodules VTMP: OK, value: C:\Users\V\AppData\Local\Temp\v_0
Git version: git version 2.33.0.windows.2 Git vroot status: weekly.2023.15-174-g6698fe4f .git/config present: true
CC version: Error: exec failed (CreateProcess) with code 2: 系统找不到指定的文件。 cmd: cc --version thirdparty/tcc status: thirdparty-windows-amd64 e90c2620