Re: non-utf8 po files breaking the build



On Sun, 2002-11-24 at 17:33, Christian Rose wrote:
> sön 2002-11-24 klockan 16.23 skrev Yanko Kaneti:
> > Sure. My proposal was meant to get agreement on:
> > 
> > cd po
> > cvs up
> > for F in *.po ; do msgconv -t UTF-8 $F -o $F.utf && mv $F.utf $F; done
> > cvs ci -m "UTF-8 for all files
> > 
> > for every gnome 2.2 module in cvs  and consider non UTF-8 tranfslations
> > there a bug.
> 
> 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.

Yanko





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