[11.51] Find in files ignores \t and \n

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
p.tingen
Junior Member
Junior Member
Posts: 23
Joined: 2007-09-25, 05:52 UTC
Location: Netherlands

[11.51] Find in files ignores \t and \n

Post by *p.tingen »

When I try to find a file by its contents and my search string contains "\t" or "\n" TC will not find the file.

Test: create a file "test.txt" with these lines:

Code: Select all

protools\ttFile.i
protools\newFile.i
protools\oldFile.i
Now, search for files, select "Find text", enter "protools\ttFile", start search.
Image: https://i.imgur.com/jd6cVgq.png

Same with string "protools\newFile", but "protools\oldFile" works.
My guess is that handling of special characters \n and \t break the search

Same error occurs in previous version 11.50 btw
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6950
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [11.51] Find in files ignores \t and \n

Post by *Horst.Epp »

That's not an error at all.
You have to protect the \t by using \\t
From the help, always a good idea to read it before posting bugs :(

Find text If this option is checked, you can enter text to be searched. With \t you find tabstops, and with \n line breaks (ENTER) in texts. To find a backslash \, you need to give it twice: \\ .
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [11.51] Find in files ignores \t and \n

Post by *petermad »

Moderator message from: petermad » 2025-02-22, 01:07 UTC

Moved to "Total Commander (English)" from "TC11.x bug reports (English)"
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply