- May
- 13,745
- 209
Is TYPE supposed to recognize Unicode and display it properly? I found this (fragment of a?) batch file in my temp directory, apparently left by the installer.
It has no BOM. It starts with an '@' which was lost by TYPE. The Unicode isn't handled correctly and the first line is off (compared to the others) by a byte.
That's the whole file. How did it get chopped off? What about the Unicode?
Code:
t:\> type {1948DD3B-5B8E-48E1-B620-385FB506AAF2}.bat
e c h o o f f
d e l " h : \ T e m p \ d c 6 d 7 5 a d 8 2 2 6 e 2 0 7 0 d 4 8 c 3 1 3 9 4 9
d 1 2 2 0 \ u p d a t e r . i n i "
d e l " h : \ T e m p \ d c 6 d 7 5 a d 8 2 2 6 e 2 0 7 0 d 4 8 c 3 1 3 9 4 9
d 1 2 2 0 \ u p d a t e r . d a t "
: a g a i n
i f n o t e x i s t " h : \ T e m p \ d c 6 d 7 5 a d 8 2 2 6 e 2 0 7 0 d
4 8 c 3 1 3 9 4 9 d 1 2 2 0 \ u p d a t e r . e x e " g o t o e n d
i f e x i s t " h : \ T e m p \
It has no BOM. It starts with an '@' which was lost by TYPE. The Unicode isn't handled correctly and the first line is off (compared to the others) by a byte.
That's the whole file. How did it get chopped off? What about the Unicode?