Thread overview
DMD output non readable characters
Dec 31, 2005
Shawn Liu
Jan 01, 2006
Thomas Kuehne
Jan 01, 2006
Shawn Liu
Jan 05, 2006
Thomas Kuehne
Jan 03, 2006
Walter Bright
Jan 03, 2006
Oskar Linde
Jan 03, 2006
Shawn Liu
December 31, 2005
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





January 01, 2006
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-"@T*#0IC;&%S<R!);6%G97M]#0IC;&%S
> M<R!297-O=7)C94UA;F%G97(-"GL-"@E);6%G92!G971);6%G92AC:&%R6UT@
> M;F%M92D@>R!R971U<FX@;G5L;#L@?0T*?0T*#0IC;&%S<R!497-T#0I[#0H-
> M"FEM<&]R="!S=&0N9FEL93L-"FEM<&]R="!S=&0N<&%T:#L-"@T*<W1A=&EC
> M($EM86=E6UT@:6UA9V5S.PT*#0IS=&%T:6,@=F]I9"!I;FET26-O;G,H*2 -
> 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
> M8FI?9&ES#0H):6UA9V5S6R)R961O(ET@"0D)/2!297-O=7)C94UA;F%G97(N
>=9V5T26UA9V4H(G)E9&\N9VEF(BD[#0I]#0H-"GT`
> `
> end

I'cant reproduce this. What OS, shell and compiler version were you using?

Thomas


January 01, 2006
"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.






January 03, 2006
"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?


January 03, 2006
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
January 03, 2006
"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.


January 05, 2006
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