[TC 8.51a] Create button with LF - bug or feature?

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Skif_off
Member
Member
Posts: 134
Joined: 2013-09-30, 13:13 UTC

[TC 8.51a] Create button with LF - bug or feature?

Post by *Skif_off »

1. Create text file with newline format LF ("Unix", \n, 0x0A or 0Ah) and with button code, for example:

Code: Select all

TOTALCMD#BAR#DATA 
%COMMANDER_PATH%\TOTALCMD.EXE 
/i=%%Temp%%\test.ini 
%COMMANDER_PATH%\TOTALCMD.EXE 
TOTALCMD 
%COMMANDER_PATH%\ 

-1 
2. Now copy to clipboard and insert in button bar.
3. Open dialog box Change button bar: all fields are empty.

With CR ("Mac", \r, 0x0D or 0Dh) and CR+LF ("DOS/Win") all works fine.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Well, as you stated above correctly: You did something wrong by using LF instead of CRLF.

If you want to create a button this way you have to follow the rules of the given format by TC.
If you use the wrong format, don't blame TC ... just a PEBCAK ;)
#5767 Personal license
Skif_off
Member
Member
Posts: 134
Joined: 2013-09-30, 13:13 UTC

Post by *Skif_off »

2sqa_wizard
I don't blame TC :) There is no problem, it's question only.
Wrong format? All fields are exist... Where I can read the rules of the given format by TC?
User avatar
Dalai
Power Member
Power Member
Posts: 9966
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Skif_off wrote:Where I can read the rules of the given format by TC?
Well, you are using the Windows platform, so it's Windows that makes the rules. And that means CRLF, 0x0D0A or whatever you call it, as linebreaks.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Skif_off
Member
Member
Posts: 134
Joined: 2013-09-30, 13:13 UTC

Post by *Skif_off »

2Dalai
Windows platform? But 0x0D works too. Windows platform uses cp125x and UTF-16LE, but: %UL & %UF.
For example: http://www.google.com/search?q=Wine+site%3Aghisler.ch

I am understand, there is no problem for me, it's question only (I noticed by chance). Is feature? Ok :)
User avatar
Dalai
Power Member
Power Member
Posts: 9966
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

It doesn't matter if you use TC on Wine. TC is still a Windows program.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply