Re: non-utf8 po files breaking the build



On Sun, Nov 24, 2002 at 05:14:25PM +0100, Christian Rose wrote:
> sön 2002-11-24 klockan 17.08 skrev Yanko Kaneti:
> > > Maybe this could be modified a bit, so that po files that are already
> > > valid UTF-8 won't be unnecessarily touched?
> > 
> > ok here is the final version.
> > 
> > for F in `grep -l 'charset=[^U]' *.po` ; do msgconv -t UTF-8 $F -o $F.utf && mv $F.utf $F; done
> > 
> > Files differing only by their timestamp dont get committed anyway.
> > msgconv takes care of changing charset=utf-8 to charset=UTF-8.
> 
> I think this would be mostly ok, but perhaps inverse matching on a full
> "charset=UTF-8" would be more failsafe than just inverse matching on an
> initial U in the charset.

I don't think you should do it, it would create some burdens for 
translators that are unnecesary.

Kind regards
keld



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