PATCH: i18nc not working under windows

Thiago Macieira thiago at
Mon Nov 10 17:47:57 GMT 2008

On Monday 10 November 2008 18:18:24 Patrick Spendrin wrote:
> Hi all,
> even though this patch doesn't change anything for most of you, I'd like
> to hear your thoughts about it.
> The current situation is that i18nc() doesn't work on windows because it
> uses dcgettext(domain, msg, LC_MESSAGES) rather than dgettext(domain,
> msg) which is used by i18n(). The above two gettext calls are thought to
> be equivalent according to the gettext manpage. On Windows the dcgettext
> call doesn't work because LC_MESSAGES is not defined correctly.
> The attached patch replaces the dcgettext calls with dgettext ones; it
> could be even used everywhere (so I could remove the ifdefs) as the
> category is not used in the kcatalog.cpp code anyway.

Use KMail :-)

It would've warned you you forgot to attach the patch.

Thiago Macieira - thiago (AT) - thiago (AT)
  Senior Software Engineer - Nokia, Qt Software
  Qt Software is hiring - ask me
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the kde-core-devel mailing list