[Rpm-metadata] updates
Peter Bowen
pzb at ximian.com
Sun Oct 26 13:25:54 UTC 2003
On Sat, 2003-10-25 at 01:41, seth vidal wrote:
> > option 1:
> > doing a 'try, except' conditional and if it fails, bailing on the rpm.
> > option 2.
> > doing a 'try, except' conditional and if it fails, warning, and
> > replacing the string with 'GET THE PACKAGER TO WRITE IN ASCII OR UTF8'
> > or something equally as caustic.
>
> option 3:
> 'try, except' - on failure, do the ordinal test char by char in the
> string and replace/remove the offending character(s)
I would suggest option 3. Just assume any character > 127 is evil if
the string isn't UTF-8, and replace it with '?'. Technically you can do
better, but it probably isn't worth the time.
Thanks.
Peter
More information about the Rpm-metadata
mailing list