On Wed, 13 Jul 2022 06:51:42 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
>> It will show 433 B now, in ubuntu native it shows 433 bytes. >> bytes replaced by B to handle plural forms, otherwise for 1 byte file it >> show 1 bytes. > > i guess it's not right then, no? if you are changing to mimic native, then it > should be "bytes" and not "B". Just for 1 byte case, you cannot compromise on > other file size(s), in my opinion. > Also, what's the likelihood of having 1 byte file, I guess it's very rare. If > you type a character, it will be shown as 2 bytes. In that case to handle 1 byte, do i need to add separate property in properties file? If filesize=1 then can get "byte" string from properties file and can format using MessageFormat? ------------- PR: https://git.openjdk.org/jdk/pull/9327