[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: msgconv: conversion failure
From: |
Bruno Haible |
Subject: |
Re: msgconv: conversion failure |
Date: |
Mon, 12 May 2003 11:49:09 +0200 (CEST) |
Denis Barbier wrote:
> a French translator for Debian processed a bunch of PO files with msgconv
> and encountered the following error message:
> msgconv: conversion failure
>
> This problem appears for instance with this file
>
> http://ftp-master.debian.org/~barbier/l10n/material/po/unstable/main/d/dpkg/po/dpkg_1.10.10_fr.po.gz
Thanks for reporting this; apparently you're the first one to make use of a
single msgstr larger than 4 KB. This patch fixes it.
Bruno
*** gettext-0.11.5/src/msgl-iconv.c.bak 2002-05-22 14:32:52.000000000 +0200
--- gettext-0.11.5/src/msgl-iconv.c 2003-05-10 01:06:20.000000000 +0200
***************
*** 100,106 ****
if (res == (size_t)(-1))
{
! if (errno == EINVAL)
break;
else
return -1;
--- 100,108 ----
if (res == (size_t)(-1))
{
! if (errno == E2BIG)
! ;
! else if (errno == EINVAL)
break;
else
return -1;