Page 1 of 1

File deletion error!

Posted: 13 Mar 2023 04:19
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!

Re: File deletion error!

Posted: 13 Mar 2023 09:36
by Horst
Not confirmed
How do you delete ?

Re: File deletion error!

Posted: 13 Mar 2023 12:43
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 ?

Re: File deletion error!

Posted: 13 Mar 2023 12:58
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?

Re: File deletion error!

Posted: 14 Mar 2023 03:29
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?

没有任何提示,或许和系统的区域设置有关系,相关视频见附件

Re: File deletion error!

Posted: 14 Mar 2023 07:52
by admin
So the different Delete commands behave differently???

Re: File deletion error!

Posted: 14 Mar 2023 08:15
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.

Re: File deletion error!

Posted: 14 Mar 2023 08:40
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)

Re: File deletion error!

Posted: 14 Mar 2023 09:14
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

Re: File deletion error!

Posted: 14 Mar 2023 09:15
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.

Re: File deletion error!

Posted: 14 Mar 2023 09:24
by admin
The next beta will at least handle the issue that started this topic.

Re: File deletion error!

Posted: 14 Mar 2023 09:38
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)

Re: File deletion error!

Posted: 14 Mar 2023 10:12
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"提示的文件名是正确的,两个文件会同时消失,但刷新后另外一个文件会显示出来

Re: File deletion error!

Posted: 15 Mar 2023 10:07
by admin
Is it fixed now? (see viewtopic.php?p=208847#p208847)

Re: File deletion error!

Posted: 15 Mar 2023 11:46
by terrytw
It is fixed for me at least.