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

Bug#692191: nginx: All debconf translations broken because the templates file has trailing ^M characters

Package: nginx
Severity: normal
Tags: l10n

To Debian translators, let's make it short: DON'T WORK on nginx as of

Because the nginx-naxsi-ui.templates file has trailing ^M characters,
debconf-updatepo messes up PO files.

This does ot appear obviously in the uploaded package because
debian/po/*.po are out of sync with the templates file, there.

However, running "debconf-updatepo" on the package source tree then
breaks all PO files to 0t2f0u.

To fix, this, as I wrote to Kartik on IRC:
08:51 < bubulle> kart_: OK, got it
08:51 < bubulle> ^ M characters at the end of lines in the templates
08:52 < bubulle> you need to:
08:52 < bubulle> - leave PO files as they ar ein the uploaded package
08:52 < bubulle> - edit the templates file and remove trailing ^M
08:53 < bubulle> - run debconf-updatepo
08:53 < bubulle> all PO files shoudl remain 2t
08:58 < kart_> bubulle: ok. doing it.
09:04 < kart_> bubulle: I didn't find ^M in templates :)

I guarantee that ^M are there. However, vim doesn't show them. You
need a very very basic "vi" to see them (I use nvi) and remove them.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Reply to: