Page 1 of 2
Strange behaviour of size column in LV
Posted: 18 Oct 2007 12:20
by JoTo
Hi XYplorer Forum,
i am using:
XYplorer 6.40.0003
Windows XP SP2
Since the last two updates i have a strange behaviour of the size column in listview.
Up to then i have had all the time the column size display format set to "Show space used and Bytes".
Since the update to v 6.40.0000 i get with that format setting strange numbers in the size column.
e.g.
File Size -> Showing up as
22749184 -> 22
8806400 -> 8
278528 -> 278
So only the first, first two or first 3 digits of the real filesize is shown. o_O huh? (Can send screenshot if you need!)
The size column is wide enough to show the big numbers, and when i switch the format to "raw bytes" the correct file sizes are shown in the size column. But in the raw bytes format i miss the dots that makes it easier to recognize if this is a KB, MB or GB number.
Can't use the other formats with KB, MB and so on, because i often need the exact bytesize.
Any idea if there is a wrong setting in the options/inifile? Or is this a bug in the 6.40.x versions?
Any hint that enlightens and point me in the right direction are really appreciated.
TIA very much
JoTo
Posted: 18 Oct 2007 12:31
by TheQwerty
I can confirm this.
I'm guessing it's a localization issue pertaining to using a period to separate digit groups rather than a comma.
It displays the first grouping of digits, or what it believes is the integer representation.
If you don't mind the switch you can go to
Control Panel
-> Regional and Language Options
-> Regional Options
-> Customize
-> Numbers
Then change the "Digit grouping symbol" to something other than a period.
At least it provides a fix until Don can take a look into it.
EDIT: Should also note it affects the filesize section of the status bar and the info pane's properties tab.
Re: Strange behaviour of size column in LV
Posted: 18 Oct 2007 12:36
by admin
JoTo wrote:i am using:
XYplorer 6.40.0003
Windows XP SP2
And you don't have the problem in 6.40.0000??
Re: Strange behaviour of size column in LV
Posted: 18 Oct 2007 13:18
by TheQwerty
admin wrote:JoTo wrote:i am using:
XYplorer 6.40.0003
Windows XP SP2
And you don't have the problem in 6.40.0000??
I tested it on a few previous version I still have archives for by changing my settings as described above and using a period for digit grouping separator and it happens in:
6.40.0004
6.40.0000
6.30.0056
6.30.0044
6.20.0009
All on XP SP2.
Re: Strange behaviour of size column in LV
Posted: 18 Oct 2007 13:32
by admin
TheQwerty wrote:admin wrote:JoTo wrote:i am using:
XYplorer 6.40.0003
Windows XP SP2
And you don't have the problem in 6.40.0000??
I tested it on a few previous version I still have archives for by changing my settings as described above and using a period for digit grouping separator and it happens in:
6.40.0004
6.40.0000
6.30.0056
6.30.0044
6.20.0009
All on XP SP2.
I use a period for digit grouping as well and I don't have a problem here.

But I vaguely remember a case reported by some user where that "period" was not a period but some UNICODE character looking like period! Can you check that?
Posted: 18 Oct 2007 13:40
by jacky
TheQwerty wrote:I can confirm this.
Well, I can't. I usually don't have "Show space used", but either way it works fine here. I tried putting a dot as separator (my default was some weird kind of space, then switched to space for easier use with selection filter) and every time it works fine.
Same XY, and XP SP2 as well.
Re: Strange behaviour of size column in LV
Posted: 18 Oct 2007 13:43
by TheQwerty
admin wrote:I use a period for digit grouping as well and I don't have a problem here.

But I vaguely remember a case reported by some user where that "period" was not a period but some UNICODE character looking like period! Can you check that?
I typed it myself, so it's just a normal period.
I think it's related to using a digit grouping symbol that is not the default for that region.
I currently use "English (US)" and if I go to Customize and then change digit grouping symbol to period it cuts them off.
If I switch to use "German (Germany)" and don't change the grouping XY displays it fine. If I then go to Customize and change the separator to a comma XY cuts it off again.
Posted: 18 Oct 2007 13:45
by admin
What about the other size formats (KB, KB rounded, etc). Do some of them print the numbers with separator okay, and others not?
Posted: 18 Oct 2007 13:48
by TheQwerty
Using English (US) and changing it to a period.
If I change it to use KB (the Show Space Used settings doesn't appear to make a difference) it displays properly in the column ("1.002.82 KB") but the Properties info pane tab and status bar display it incorrectly ("1.002.82 KB (1").
Re: Strange behaviour of size column in LV
Posted: 18 Oct 2007 13:52
by jacky
TheQwerty wrote:I currently use "English (US)" and if I go to Customize and then change digit grouping symbol to period it cuts them off.
I think I got it. You do realize that dot is not used there in English, but as decimal separator right?
It seems to occur when you use the same characer as separator for both decimal & thousand separator.
So if you have dot for decimal separator, and put it as thousand separator as well, XY does cut numbers indeed!
Re: Strange behaviour of size column in LV
Posted: 18 Oct 2007 13:55
by TheQwerty
jacky wrote:TheQwerty wrote:I currently use "English (US)" and if I go to Customize and then change digit grouping symbol to period it cuts them off.
I think I got it. You do realize that dot is not used there in English, but as decimal separator right?
Of course, we do it correctly here in America. Group with comma and period for decimal.
jacky wrote:It seems to occur when you use the same characer as separator for both decimal & thousand separator.
So if you have dot for decimal separator, and put it as thousand separator as well, XY does cut numbers indeed!
Yep, that's what it is.
EDIT: Correcting tags.
Re: Strange behaviour of size column in LV
Posted: 18 Oct 2007 14:10
by admin
jacky wrote:TheQwerty wrote:I currently use "English (US)" and if I go to Customize and then change digit grouping symbol to period it cuts them off.
I think I got it. You do realize that dot is not used there in English, but as decimal separator right?
It seems to occur when you use the same characer as separator for both decimal & thousand separator.
So if you have dot for decimal separator, and put it as thousand separator as well, XY does cut numbers indeed!
I actually pass the numbers to some API (GetNumberFormat). So if this comes out wrong, it's a bug in the API I have to workaround.
Re: Strange behaviour of size column in LV
Posted: 18 Oct 2007 14:19
by admin
Okay, I could reproduce it too by setting decimal and thousand separator to the same char (which is a stupid thing to do...

). Interesting bug!
You all are right!
Posted: 18 Oct 2007 16:27
by JoTo
Hi all you above me :-),
first let me thank you all for so much rumour and effort for my silly problem. You are great.
The thing with the decimal separator was sth. i haven't thought about. And you are all right.
Somehow (don't ask me why - i have changed nothing - ok, i'm in support too and i know every customer claims that

) my number decimal sign was changed to dot instead of comma. The currency format was correct. Some program must have fiddled with these settings as my unit system also was changed to us-units instead of metric.
I changed my number format back to dot as the thousand separator and the comma as decimal separator. And XYPlorer shows the sizes in correct format again.
Somehow the change in the settings must have taken place at the same time i upgraded from 5.30.x to 6.40.0000. And so i blamed XYPlorer accidentally. Sorry for that Don!
I'm now happy again. Thanks again you all for your effort!
CU
JoTo
Re: You all are right!
Posted: 18 Oct 2007 18:10
by admin
JoTo wrote:I'm now happy again. Thanks again you all for your effort!
That's fine, and you're welcome.
Still you discovered a bug which will be fixed.