Runret and this character: •

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Runret and this character: •

Post by Marco »

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 »

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: 4452
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7462 at 100% 2560x1440

Re: Runret and this character: •

Post by klownboy »

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: 65555
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Runret and this character: •

Post by admin »

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 »

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: 2354
Joined: 27 Jun 2011 15:20

Re: Runret and this character: •

Post by Marco »

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]

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Runret and this character: •

Post by bdeshi »

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