www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - DMD output non readable characters

reply "Shawn Liu" <shawn666.liu gmail.com> writes:
see the attached file test.d

dmd test.d
dmd test.d > redirect.txt

test.d(21): cannot implicitly convert expression ("progress_rem") of type 
char[12] to int
test.d(22): cannot implicitly convert expression ("redo"2]?) of type 
char[4] to int




begin 666 test.d
M[[N_;6]D=6QE('!A:6YT<VAO<#L-
M<R!297-O=7)C94UA;F%G97(-"GL-" E);6%G92!G971);6%G92AC:&%R6UT 
M;F%M92D >R!R971U<FX ;G5L;#L
M"FEM<&]R="!S=&0N9FEL93L-"FEM<&]R="!S=&0N<&%T:#L-" T*<W1A=&EC

M"GL-" T*"6EM86=E<ULB<')O9W)E<W-?<F5M(ET "3T 4F5S;W5R8V5-86YA
M9V5R+F=E=$EM86=E*")P<F]G<F5S<U]R96TN9VEF(BD["2\O(&1E;&5T95]O


`
end
Dec 31 2005
next sibling parent reply Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Shawn Liu schrieb am 2005-12-31:
 see the attached file test.d

 dmd test.d
 dmd test.d > redirect.txt

 test.d(21): cannot implicitly convert expression ("progress_rem") of type 
 char[12] to int
 test.d(22): cannot implicitly convert expression ("redo"2]?) of type 
 char[4] to int




 begin 666 test.d
 M[[N_;6]D=6QE('!A:6YT<VAO<#L-
 M<R!297-O=7)C94UA;F%G97(-"GL-" E);6%G92!G971);6%G92AC:&%R6UT 
 M;F%M92D >R!R971U<FX ;G5L;#L
 M"FEM<&]R="!S=&0N9FEL93L-"FEM<&]R="!S=&0N<&%T:#L-" T*<W1A=&EC

 M"GL-" T*"6EM86=E<ULB<')O9W)E<W-?<F5M(ET "3T 4F5S;W5R8V5-86YA
 M9V5R+F=E=$EM86=E*")P<F]G<F5S<U]R96TN9VEF(BD["2\O(&1E;&5T95]O


 `
 end
I'cant reproduce this. What OS, shell and compiler version were you using? Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDuFZw3w+/yD4P9tIRAqWEAKC+jfKng59EPRvBfBa1K+9jp7KRGgCfWcbw OhgpMzZANTe0gdS0Szkfz6I= =MZCW -----END PGP SIGNATURE-----
Jan 01 2006
parent reply "Shawn Liu" <shawn666.liu gmail.com> writes:
"Thomas Kuehne" <thomas-dloop kuehne.cn> 
says:gc1m83-vgk.ln1 birke.kuehne.cn...
 I'cant reproduce this. What OS, shell and compiler version were you using?

 Thomas
WinXP pro, Chinese version, both DMD 0.141, 0.142. dmd test.d > redirect.txt redirect.txt contains 0x01,0x03 when viewed by UltraEdit in Hex mode.
Jan 01 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Shawn Liu schrieb am 2006-01-01:
 "Thomas Kuehne" <thomas-dloop kuehne.cn> 
 says:gc1m83-vgk.ln1 birke.kuehne.cn...
 I'cant reproduce this. What OS, shell and compiler version were you using?

 Thomas
WinXP pro, Chinese version, both DMD 0.141, 0.142. dmd test.d > redirect.txt redirect.txt contains 0x01,0x03 when viewed by UltraEdit in Hex mode.
This bug is Windows spezific. I'll have to dig a bit into the Windows "shell" to see if there is a reliable way to detect this. (Why are codepages still the default in a "modern" OS ...) Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDvPwN3w+/yD4P9tIRAp3IAJ9TqL2JVUPBOBZIk9ClvKJJlmAzBACcC+Pz YsS6Yk25nCVuBtTVu+vtSS0= =5j1u -----END PGP SIGNATURE-----
Jan 05 2006
prev sibling parent reply "Walter Bright" <newshound digitalmars.com> writes:
"Shawn Liu" <shawn666.liu gmail.com> wrote in message 
news:dp5pbc$11a9$1 digitaldaemon.com...
 see the attached file test.d

 dmd test.d
 dmd test.d > redirect.txt

 test.d(21): cannot implicitly convert expression ("progress_rem") of type 
 char[12] to int
 test.d(22): cannot implicitly convert expression ("redo"2]?) of type 
 char[4] to int
That's because Image is declared as an array, and the code is trying to index the array with a string. Did you mean for Image to be an associative array?
Jan 03 2006
parent reply Oskar Linde <oskar.lindeREM OVEgmail.com> writes:
Walter Bright wrote:
 "Shawn Liu" <shawn666.liu gmail.com> wrote in message 
 news:dp5pbc$11a9$1 digitaldaemon.com...
 
see the attached file test.d

dmd test.d
dmd test.d > redirect.txt

test.d(21): cannot implicitly convert expression ("progress_rem") of type 
char[12] to int
test.d(22): cannot implicitly convert expression ("redo"2]?) of type 
char[4] to int
That's because Image is declared as an array, and the code is trying to index the array with a string. Did you mean for Image to be an associative array?
I think he is complaining about the junk characters after the string "redo" in the compiler error message. /Oskar
Jan 03 2006
parent "Shawn Liu" <shawn666.liu gmail.com> writes:
"Oskar Linde" <oskar.lindeREM OVEgmail.com> 
says:dpdl7g$2vsu$1 digitaldaemon.com...
 I think he is complaining about the junk characters after the string 
 "redo" in the compiler error message.
Yes. When I call std.utf.toUTF16() with the output error line, An exception raised and cause app collapse. Because the output error line contains non-UTF8 characters.
Jan 03 2006