v20 code page behavior changes

Aug 21, 2014
18
1
I just upgraded from v20.00 build 14 (the initial release) to the latest v20.0 build 20. It seems like something changed in the way the application handles double-byte code pages. I checked this in code page 950, but also assume that 949, 936, and 932 would also have the same behavior (I would have to reboot to verify those).

When I start typing, it inserts spaces between each character, e.g.:

If I type "dir /s /b", it would show up as:
Code:
C:\Temp>d i r   / s   / b

If I do a CHCP 437 and type the same command, then it would be fine:
Code:
C:\Temp>dir /s /b

The command still works, so it's not actually adding spaces, it's only in the presentation.

If I use tab completion, then it doesn't insert spaces on the completed portion, but adds many of spaces after it, so it would look something like this (where MyFile.txt was tab completed):
Code:
C:\Temp>d i r   MyFile.txt            S e c o n d F i l e . t x t

I rolled back to v20.00.14 and it works fine. I also still had an old build of v19 installed and it also still works, so it seems like it is something with the latest build and not a system configuration issue.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
The problem is that there is no way for TCC to determine the width for a DBCS character. TCC will try to make a guess, but it doesn't always guess right.

The behavior was changed in build 20.0.18 to work around another DBCS issue.

(If users would just switch to Unicode ...)
 
Aug 21, 2014
18
1
If I set my code page to 65001, it does seem to fix the issue I listed above. I know I had issues with 65001 in the past, but I think that was with cmd.exe, so hopefully it won't cause any problems.

The only issue I did find is that it will try and quote wide characters if I tab complete and it miscalculates the length. For example, if I create a file "test.txt" using the full-width "test" and do tab completion, it will complete as:

Code:
D:\Temp> dir "test.

The actual ".txt" and the closing quotes are actually there, but are just not shown.
 
Similar threads
Thread starter Title Forum Replies Date
kb6ojs Want to start TCMD v20 with every Windows 10 bootup Support 3
C How to? Setting up SMTP access for Yahoo with TCMD v20 Support 7
rps V20 In-process pipes problem Support 8
E Fixed SHRALIAS doesn't work / SHRALIAS.EXE is missing in v20.11.35 Support 2
C sendmail in v20.00.25 x64 Support 7
S Paste in TCC/TCMD window is very slow [v20.0.22] Support 13
Alpengreis Again theme problem [v20.0.21]? Support 11
nikbackm Pipe performance in TCC v20 Support 3
vefatica v20 help nit Support 12
Glenn Bowes WAD TOOLBAR Button Definations are different v19 to v20 Support 8
rconn News Take Command V20 beta build 9 Support 0
rconn News Take Command v20 Public Beta Support 0
M Goto fails when a text endtext block precedes the code Support 5
rconn News Update: Code Signing Certificate Status Support 16
Peter Murschall UNICODE mixed with ANSI Code Support 11
A Inconsistent return code for TCC scripts Support 4
D What is wrong with this code? Support 7
vefatica Code page? Support 1
vefatica Exit code of a batch file? Support 4
rconn News Take Command code signing certificate Support 0
Phileosophos Documentation TPIPE /string type code confusion Support 4
M How to? Get the return code from an external program... Support 8
M What am I doing wrong in this (very simple!) code? Support 3
M Why does this code produce these results? Support 2
M Why is the exit code zero? Support 6
S WAD _exit returns invalid code under some conditions Support 13
T @ping: response code, data size and documentation incorrect Support 2
C plugin or code to verify email addresses ? Support 7
vefatica Code page? Support 0
B BB code is Off? Support 2
D bug in ftp code Support 19
T Error: This page can’t be displayed Make sure the web address //ieframe.dll/dnserrordiagoff.htm# is correct. Support 8
D Documentation Help "Startup" page does not describe global lists Support 0
Joe Caverly A new guard page for the stack cannot be created Support 6
vefatica OT: JPSoft home page? Support 4
Charles Dye Old download links on JPSoft.com home page Support 0
A Downloads page issues Support 1
R Downloads Page Support 0
Dan Glynhampton Documentation v15 help: Error on @TRIMALL function page Support 0
Dan Glynhampton Documentation v15 help: ECHOXERR Help Page Title is Wrong Support 0
Dan Glynhampton Documentation Bad Link/Missing Page in v15 help Support 0
Phileosophos How to? The help system redirects to the index page Support 4
T 'All Downloads' page still links to v13 Support 2
vefatica Placement of pop-ups on a forum page Support 18
D "Learn More" button on home page not working Support 3
Charles Dye Blog page Support 13
S HELP suggestions - What's New page Support 3
D New Posts page needs refresh Support 4
D Bad link on Alias page in Help Support 0
vefatica Forum article composition page Support 0

Similar threads