In my opinion, this is not a bug (and probably not a feature either) but the expected behavior.
bash's printf is a slightly modified version of the underlying printf() function provided by the C standard library. The printf(3) manual explicitly states that the precision is a number of _bytes_, not a number of characters. So this is the expected result with multibyte characters like 'á'. You might want to switch to a ISO-8859 character set if you want your 'á' character to only take one byte of memory. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1654688 Title: Printf does not properly justify non-ASCII characters To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1654688/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
