it that hard to make a plugin support unicode?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
dindog
Senior Member
Senior Member
Posts: 316
Joined: 2010-10-18, 07:41 UTC

it that hard to make a plugin support unicode?

Post by *dindog »

well, i know it is a little off topic and naive to ask that. I almost know nothing about writing program, but I really want to have a MultiArc which support unicode. I wonder it that hard to transfer a plugin to support unicode? well, we got source and everythings...

If i am told it is not that hard, maybe i'll learn some stuff and try it...
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the Plugins forum.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Problem is that MultiArc works with console applications and most of them doesn't support Unicode at all. And, I don't sure console can display Unicode characters or pipe allows to read them...
User avatar
dindog
Senior Member
Senior Member
Posts: 316
Joined: 2010-10-18, 07:41 UTC

Post by *dindog »

maybe TC could consider a build-in function like multiarc to support different archiver
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Code: Select all

Microsoft Windows XP [Version 5.0.2195]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Program Files\¤FileUtils>dir
 Volume in drive C is CDrive
 Volume Serial Number is 1234-A123

 Directory of C:\Program Files\¤FileUtils

11/19/2010  09:55 PM    <DIR>          .
11/19/2010  09:55 PM    <DIR>          ..
11/19/2010  03:11 PM    <DIR>          locate32
11/19/2010  09:47 PM             4,727 ¤CΩopy of ë◘║┼⅝Ẃ.ini
               4 File(s)      1,647,443 bytes
               7 Dir(s)  94,341,783,552 bytes free
Note the unicode characters, Command prompt can display whatever the font can, that's with Lucida Console font.

Granted most linux tools (UnxUtils) I've come across absolutely choke on non-ascii, as well as other line-command tools that can't even handle a ¤ or † character. But it's not a problem with the console. It is a problem with the people writing programs for the console assuming ascii only.
Last edited by Balderstrom on 2010-11-20, 08:36 UTC, edited 1 time in total.
User avatar
nsp
Power Member
Power Member
Posts: 1917
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

[quote="Balderstrom"]

Code: Select all

Microsoft Windows XP [Version 5.0.2195]
..
Granted most linux tools (UnxUtils) I've come across absolutely choke on non-ascii, as well as other line-command tools that can't even handle a ¤ or † character. But it's not a problem with the console. It is a problem with the people writing programs for the console [b]assuming[/b] ascii only.[/quote]
You can turn windows console to be Unicode and support UTF8 input for batch file but as you said, most of the console application do not handle unicode names correctly ! 

Even M$ more.com pager do not support Unicode console  :? 

Programming in order to support Unicode or not is not that hard, but transforming a console application that was not designed to support unicode is not easy at all specially with UTF8 and C ! For a programmer point of view, this is a lot of time spend without adding any functionality you will use.

([i] I can handle 99% of my job without Unicode, and for ages i did without ![/i])
Post Reply