File deletion error!

Things you’d like to miss in the future...
Post Reply
zxjwwwh
Posts: 7
Joined: 18 Nov 2022 17:21

File deletion error!

Post by zxjwwwh »

XYP (Ver24.20-24.20.0100) can't distinguish between Double-byte and Single-byte punctuation, such as

Code: Select all

Hello(XYP).txt
Hello(XYP).txt
When one file is deleted, the other file will also be deleted!
Windows 7/10 (Chinese)

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: File deletion error!

Post by Horst »

Not confirmed
How do you delete ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

zxjwwwh
Posts: 7
Joined: 18 Nov 2022 17:21

Re: File deletion error!

Post by zxjwwwh »

Just press the Delete Key ,or use the XYP's Right-click Menu, the System's Right-click Menu works well.
Horst wrote: 13 Mar 2023 09:36 Not confirmed
How do you delete ?
Windows 7/10 (Chinese)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: File deletion error!

Post by admin »

Cannot confirm here. Must be the locale. Interesting. Deletion is handled by the shell, isn't it? Do you get an "Are you sure?" prompt?

zxjwwwh
Posts: 7
Joined: 18 Nov 2022 17:21

Re: File deletion error!

Post by zxjwwwh »

admin wrote: 13 Mar 2023 12:58 Cannot confirm here. Must be the locale. Interesting. Deletion is handled by the shell, isn't it? Do you get an "Are you sure?" prompt?

没有任何提示,或许和系统的区域设置有关系,相关视频见附件
Attachments
Delete.wmv.xys
(672.25 KiB) Downloaded 20 times
Windows 7/10 (Chinese)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: File deletion error!

Post by admin »

So the different Delete commands behave differently???

terrytw
Posts: 65
Joined: 03 Mar 2023 03:37

Re: File deletion error!

Post by terrytw »

Fascinating.

It is not actually deleted; both file disappeared at first, but if you refresh, you will find that only 1 of the 2 files were actually deleted.

It is a visual bug more than anything else.

System context menu will not cause this. Pressing delete key or shift + delete key will cause this. You will OFC not be notified for delete key, but you will be notified for shift + delete.

terrytw
Posts: 65
Joined: 03 Mar 2023 03:37

Re: File deletion error!

Post by terrytw »

Speaking of this, refresh is not working reliably for me.

Often times when I download something, the file won't appear unless I manually refresh.

I think if refreshing is working, this issue can be mitigated. (not fixed, but mitigated)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: File deletion error!

Post by admin »

Fascinating indeed, and terrible. By default Windows is case-insensitive: A==a, fine. But now it turns out the standard test functions for case-insensitive-sameness of characters apparently also see these parentheses as equivalent: (==( and )==) -- if the locale is Chinese. Windows should not allow Hello(XYP).txt and Hello(XYP).txt in the same directory then, but it does. Holy moly.

To work around this issue (which is admittedly rare, but also terrifying) I would have to modify (and complicate) hundreds of places in the code. This is hopeless. I won't do it.

Setting this tweak might solve the issue that started this thread (but it will have undesired side-effects, so I cannot recommend it):

Code: Select all

FilenamesCaseSensitive=1

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: File deletion error!

Post by admin »

terrytw wrote: 14 Mar 2023 08:40 Speaking of this, refresh is not working reliably for me.

Often times when I download something, the file won't appear unless I manually refresh.

I think if refreshing is working, this issue can be mitigated. (not fixed, but mitigated)
I plan to overhaul refresh this year.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: File deletion error!

Post by admin »

The next beta will at least handle the issue that started this topic.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: File deletion error!

Post by admin »

Hey, found a German example for the same issue (works in German locale only I assume):

Code: Select all

daß.txt
dass.txt
Delete one of them and both disappear. (Fixed in next beta)

zxjwwwh
Posts: 7
Joined: 18 Nov 2022 17:21

Re: File deletion error!

Post by zxjwwwh »

terrytw wrote: 14 Mar 2023 08:15 Fascinating.

It is not actually deleted; both file disappeared at first, but if you refresh, you will find that only 1 of the 2 files were actually deleted.

It is a visual bug more than anything else.

System context menu will not cause this. Pressing delete key or shift + delete key will cause this. You will OFC not be notified for delete key, but you will be notified for shift + delete.
是的,现象和你所说的一样。

由于我系统设置的原因,"Delete"按键默认不提示。但是"shift + delete"提示的文件名是正确的,两个文件会同时消失,但刷新后另外一个文件会显示出来
Windows 7/10 (Chinese)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: File deletion error!

Post by admin »

Is it fixed now? (see viewtopic.php?p=208847#p208847)

terrytw
Posts: 65
Joined: 03 Mar 2023 03:37

Re: File deletion error!

Post by terrytw »

It is fixed for me at least.

Post Reply