Runret and this character: •

Things you’d like to miss in the future...
Post Reply
Marco
Posts: 2286
Joined: 27 Jun 2011 15:20

Runret and this character: •

Post by Marco » 25 Jul 2014 01:02

I hope this :bug: is not too nasty.
I have a file named "Test•file.txt" on my desktop. If I run in the AB

Code: Select all

text runret("cmd /c dir");
the dot is still shown as a dot, however it's not the same character, because the original dot is hex 95, while the output from XY is hex 07.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Runret and this character: •

Post by Enternal » 25 Jul 2014 01:35

Hmm... when I ran it directly through the CMD, I get the same exact character so that's correct. Running it through XYplorer with your command however, it gave me a question mark. So XYplorer is not capturing the output of CMD as is. Seems like a :bug: to me as well.

klownboy
Posts: 2864
Joined: 28 Feb 2012 19:27

Re: Runret and this character: •

Post by klownboy » 25 Jul 2014 14:52

I made a file in my scripts folder called Test•file.txt (as copied from your post) and ran the text runret("cmd /c dir"); in the AB and my results displayed the dot also as the BEL hex 007. However my system (US with Segoe UI font) doesn't show hex 95 as a dot but as a underscore with the same results in notepad++. Whenever I wanted to use a BEL dot in a script I've been using alt-007 from the numpad. By the way, I assume the character you used in the post is actually hex 95. I ask because when pasted into my notepad++ it displays as "BEL" 007.

admin
Site Admin
Posts: 48487
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Runret and this character: •

Post by admin » 12 Aug 2014 14:02

It is nasty. I can confirm it but not fix it. XY just reports what windows writes to the pipe.

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Runret and this character: •

Post by Enternal » 12 Aug 2014 22:06

Marco, I can't do anything right now, but try testing it using PowerShell. Hopefully PowerShell can output it correctly through the pipe.

Marco
Posts: 2286
Joined: 27 Jun 2011 15:20

Re: Runret and this character: •

Post by Marco » 12 Aug 2014 23:28

Enternal, brilliant idea! Powershell seems to output properly everything on screen, however runret still shows the wrong character :(
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

SammaySarkar
Posts: 4225
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Runret and this character: •

Post by SammaySarkar » 13 Aug 2014 04:45

Run this cmd in a dir with that file

Code: Select all

%comspec% /c dir > list.txt
the output will be written to list.txt and that file also has the swapped hex 07 char, even if the cmd was executed out of XYplorer. That is, unless I used the incorrect bullet in the filename to begin with.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply