[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#598352: apt: show incorrect size



retitle 598352 SI requires space between number and unit
thanks

Hello,

2010/9/28 EDV <EDV@asz-online.de>:
> On below example you see that the size is not correct.
> The example output size is "1.650k B", "17,5M B" or "300k B/s" but the size must be show "1.650 kB", "17,5 MB", "300 kB/s" or "508 kB Plattenplatz".

Thanks for your report!

The problem is known for the german local and is fixed by "17,5MB" in
apt 0.8.5, which will land in testing/squeeze hopefully soon.

Thats still wrong as a space should be between number and unit
for german (and properly a few other languages as well).

And After a bit of research now on this matter, it is even the case
that this should be the case for ALL languages as:

> There should always be a (non-breaking) space between the number and
> the unit — '25 km' is correct, and '25km' is incorrect. In Section 5.3.3.
> of The International System of Units (SI), the International Bureau of
> Weights and Measures (BIPM) states "The numerical value always precedes
> the unit, and a space is always used to separate the unit from the number. …
> The only exceptions to this rule are for the unit symbols for degree,
> minute, and second for plane angle."
Source: http://en.wikipedia.org/wiki/Abbreviation#Measurement

This is a lot easier to implement than a language depending one as two
different methods are responsible for generating the "17,5 M" and "B" part.

I patched the source already to reflect this and added a few Translator
comments to prevent "17,5 M B" in the future, but i don't know yet if
(and then) this will be part of squeeze version as it is a minor thing…


Best regards

David Kalnischkies



Reply to: