0.97.1: Ampersand in file name displays in tab as two spaces

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
disillusioned
Posts: 5
Joined: Thu Dec 10, 2020 5:24 am

0.97.1: Ampersand in file name displays in tab as two spaces

Post by disillusioned »

XnView: MP 0.97.1 - 64 bit
OS: Windows 10 64bit

When an image file name contains an ampersand (&), the file name displayed in the tab has two spaces instead of the ampersand. Additionally, after the Alt key is pressed, the ampersand is now displayed as a space followed by an underscore.

Effect: Uncertainty about the file name of the image being displayed.

To reproduce:
1. Rename an image file to "a & b & c.jpg"
2. Open the file in a tab
Actual behaviour (bug): File name displays as "a b c.jpg" :bug:
3. Press the Alt key
Actual behaviour (bug): File name displays as "a _b _c.jpg" :bug:

Expected behaviour: File name is displayed as "a & b & c" in each case.
fireattack
Posts: 88
Joined: Sun Nov 10, 2013 8:02 am

Re: 0.97.1: Ampersand in file name displays in tab as two spaces

Post by fireattack »

This is just the default WIndows UI behavior - &X (or any character, in your case, the space next to ampersand) will consider X as the shortcut of this UI element. and when you press alt it shows underscore to highlight it so you can press to activate it. Like &File in menu.

I agree it should be changed/disabled in tabs though.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.97.1: Ampersand in file name displays in tab as two spaces

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.97.1: Ampersand in file name displays in tab as two spaces

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.98.1. Please check and confirm the bug fix here.
Pierre.
disillusioned
Posts: 5
Joined: Thu Dec 10, 2020 5:24 am

Re: 0.97.1: Ampersand in file name displays in tab as two spaces

Post by disillusioned »

Pierre, thank you so much for your response and for your work on this. Unfortunately, this issue still occurs in 0.98.1.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.97.1: Ampersand in file name displays in tab as two spaces

Post by xnview »

disillusioned wrote: Sun Feb 07, 2021 12:35 am Pierre, thank you so much for your response and for your work on this. Unfortunately, this issue still occurs in 0.98.1.
sorry but i can't reproduce anymore
Pierre.
disillusioned
Posts: 5
Joined: Thu Dec 10, 2020 5:24 am

Re: 0.97.1: Ampersand in file name displays in tab as two spaces

Post by disillusioned »

Wow, this is really interesting. When 0.98.1 came out, it appeared to me that the issue had been resolved. Then, a couple days ago it reappeared and I reported it here. When you replied that you couldn't reproduce it, I tried again and couldn't reproduce it.

Now, it has reappeared again, in two different flavors--a space followed by an ampersand followed by a space sometimes displays as a space followed by an underscore:
space underscore.jpg
space underscore.jpg (12.47 KiB) Viewed 1847 times
and sometimes as one space (or is it two?):
two spaces.jpg
two spaces.jpg (12.79 KiB) Viewed 1847 times
I don't recall the sequence of events that led to each outcome--switching between viewing from the file system vs. the image browser, switching between fullscreen and viewer, etc. I might have time this week to try to determine and document what leads to each.

Thanks as always for your work on XnView!
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.97.1: Ampersand in file name displays in tab as two spaces

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.97.1: Ampersand in file name displays in tab as two spaces

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.98.2. Please check and confirm the bug fix here.
Pierre.
disillusioned
Posts: 5
Joined: Thu Dec 10, 2020 5:24 am

Re: 0.97.1: Ampersand in file name displays in tab as two spaces

Post by disillusioned »

This appears to have been fixed. Thanks so much!
Post Reply