Bug#630647: Finnish translation uses "%1$d" syntax not supported by grub_printf

Vladimir 'φ-coder/phcoder' Serbinenko phcoder at gmail.com
Sat Nov 12 20:58:43 UTC 2011


tag 630647 fixed-upstream
thanks
On 15.06.2011 23:47, Kalle Olavi Niemitalo wrote:
> Package: grub-common
> Version: 1.98+20100804-14
> Severity: minor
> File: /usr/share/locale/fi/LC_MESSAGES/grub.mo
> Tags: l10n
>
> -- Steps to reproduce:
> 0. Have a partition containing an ext2 or ext3 file system that
>    has been written to.  (In case it matters, my disk has a GUID
>    partition table.)
> 1. Get to the GRUB command prompt, in grub-pc or grub-emu.
> 2. Execute "set lang=fi".
> 3. Type "ls (hd0," or similar, substituting the name of the disk.
>    Do not press Enter.
> 4. Press the Tab key.  
>
> -- Actual results:
> GRUB displays something like:
>
> grub> ls (hd0,
> Mahdollisia osioita ovat:
>
>         Osio hd0,gpt1: Tuntematon tiedostoj?rjestelm?
>         Osio hd0,gpt2: Tiedostoj?rjestelm?tyyppi ext2 - Nimi? ?boot? -
> Viimeinen muokkausaika $d.$d.$d $d:$d:$d $s, UUID
> 2097e2f5-7cc4-4fc0-84bc-7780ae74edd5
>         Osio hd0,gpt3: Tuntematon tiedostoj?rjestelm?
>         Osio hd0,gpt4: Tuntematon tiedostoj?rjestelm?
>         Osio hd0,gpt5: Tuntematon tiedostoj?rjestelm?
>
> Note the "$d.$d.$d $d:$d:$d $s" part.  (The question marks appear
> in grub-emu; I don't remember whether they do in grub-pc too.)
>
> -- Expected results:
> GRUB should have instead displayed a date and a time.
> Like this, for example:
>
> grub> ls (hd0,
> Mahdollisia osioita ovat:
>
>         Osio hd0,gpt1: Tuntematon tiedostoj?rjestelm?
>         Osio hd0,gpt2: Tiedostoj?rjestelm?tyyppi ext2 - Nimi? ?boot? -
> Viimeinen muokkausaika 15.6.2011 07:17:24 Wednesday, UUID
> 2097e2f5-7cc4-4fc0-84bc-7780ae74edd5
>         Osio hd0,gpt3: Tuntematon tiedostoj?rjestelm?
>         Osio hd0,gpt4: Tuntematon tiedostoj?rjestelm?
>         Osio hd0,gpt5: Tuntematon tiedostoj?rjestelm?
>
> (Localizing "Wednesday" is not in the scope of this bug report.)
>
> -- Cause:
> po/fi.po in the source tree does:
>
> #: normal/misc.c:88
> #, c-format
> msgid "- Last modification time %d-%02d-%02d %02d:%02d:%02d %s"
> msgstr "- Viimeinen muokkausaika %3$d.%2$d.%1$d %4$d:%5$d:%6$d %7$s"
>
> However, grub_vsnprintf_real in kern/misc.c does not support
> numbered argument conversion specifications like "%1$d".
>
> Only this one translation in po/fi.po has the bug.  There are
> dollar signs in po/zh_CN.po too but they have been commented out.
>
> -- Change request:
> Please either change the C code to support numbered arguments,
> or change the translation not to use them.
> The easiest fix would be to make the Finnish msgstr use the same
> "%d-%02d-%02d %02d:%02d:%02d %s" format as the msgid.
> Although the year-month-day format is not widely used in Finland,
> it would surely be better than not seeing the date at all.
>
> -- System Information:
> Debian Release: 6.0.1
>   APT prefers oldstable
>   APT policy: (500, 'oldstable'), (500, 'stable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
> Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages grub-common depends on:
> ii  base-files              6.0squeeze1      Debian base system miscellaneous f
> ii  dpkg                    1.15.8.10        Debian package management system
> ii  gettext-base            0.18.1.1-3       GNU Internationalization utilities
> ii  install-info            4.13a.dfsg.1-6   Manage installed documentation in 
> ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
> ii  libdevmapper1.02.1      2:1.02.48-5      The Linux Kernel Device Mapper use
> ii  libfreetype6            2.4.2-2.1        FreeType 2 font engine, shared lib
> ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime
>
> Versions of packages grub-common recommends:
> pn  os-prober                     <none>     (no description available)
>
> Versions of packages grub-common suggests:
> pn  grub-emu                      <none>     (no description available)
> pn  multiboot-doc                 <none>     (no description available)
> pn  xorriso                       <none>     (no description available)
>
> -- no debconf information
>
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20111112/47a2defc/attachment.pgp>


More information about the Pkg-grub-devel mailing list