Alternate Data Streams with non-cp-1252 names

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
kefish
New Member
New Member
Posts: 1
Joined: 2007-01-22, 17:26 UTC

Alternate Data Streams with non-cp-1252 names

Post by *kefish »

I have noticed that TC cannot handle files with ADSs where the filename consists of cp-1252 chars and ADS name includes a non-cp-1252 char. When I handle such files in Windows Explorer then everything works fine. If I change the filename not to consist of CP-1252 chars only then everything works fine also even in TC.

Config: W2k Server SP4 EN, TC 7.0 pb3 EN

Edit: Corrected the name of the topic
Last edited by kefish on 2007-01-23, 10:53 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed TC isn't a Unicode program, it's an ANSI program. Alternate Data Streams with characters from a different code page are currently not supported. They will be supported in TC 7.5 or 8 where the entire program will be converted to Unicode only.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
converted to Unicode only
Converted to Unicode only?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It means that it will probably no longer work on Windows 9x, which doesn't contain the Unicode functions - unless I find a good way to support both.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
It means that it will probably no longer work on Windows 9x, which doesn't contain the Unicode functions - unless I find a good way to support both.
That's indeed an interesting information.
jb
Senior Member
Senior Member
Posts: 412
Joined: 2003-02-09, 22:56 UTC
Location: Switzerland

Post by *jb »

To kefish:
ADS stands for Alternate Data Stream (see http://en.wikipedia.org/wiki/Fork_%28filesystem%29).
Please correct the title of your topic so that it can be found if somebody searches for the correct term.
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2ghisler(Author)
converted to Unicode only
Does that mean that .ini, .lng, .mnu, .inc. and .bar files has to be written in unicode?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
compie
Junior Member
Junior Member
Posts: 93
Joined: 2003-07-06, 18:47 UTC

Post by *compie »

No it means that Total Commander uses the Unicode version of all Win32 API calls.
compie
Junior Member
Junior Member
Posts: 93
Joined: 2003-07-06, 18:47 UTC

Post by *compie »

ghisler(Author) wrote:It means that it will probably no longer work on Windows 9x, which doesn't contain the Unicode functions - unless I find a good way to support both.
You shouldn't waste too much time with Windows 9x support.
After all: they can still use TC version 7.
User avatar
Dark One
Junior Member
Junior Member
Posts: 40
Joined: 2003-05-19, 10:48 UTC
Location: Serbia

Post by *Dark One »

It means that it will probably no longer work on Windows 9x, which doesn't contain the Unicode functions - unless I find a good way to support both
have you tried TNT controls? they are still free (there's hope for this world). also see "Tnt Convert Tool" on the download page...

i must say that i am quite surprised with the news since tc has supported windows 3.11 for way too long...[/url]
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, they have been suggested in the past. I couldn't use them with Delphi 2, which I had to use for compatibility with the 16-bit version. But now that the 16-bit version has been dropped, I may move to a newer Delphi version...
Author of Total Commander
https://www.ghisler.com
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

ghisler(Author) wrote:It means that it will probably no longer work on Windows 9x, which doesn't contain the Unicode functions - unless I find a good way to support both
What about this: The Microsoft Layer for Unicode on Windows 95/98/Me Systems
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Newer, better !

Post by *Clo »

2ghisler(Author)

:) Good morning,
…But now that the 16-bit version has been dropped, I may move to a newer Delphi version...
• …which makes the hotkeys in the menus by itself ? :D
• This is time saving…

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The Microsoft Layer for Unicode on Windows 95/98/Me Systems
Unfortunately it's available only as a C library, not for Delphi.

I already use a similar self-written layer to use long names also in the 16-bit version, so I may be able to rewrite it for supporting Win9x/ME.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
I just googled and found:
http://www.cs.wisc.edu/~rkennedy/mslu

I guess there are many possible solutions to think about for the Unicode version of Total Commander. I guess it's too early to discuss this in detail.
Post Reply