[BACK]Return to patch-gobject_glib-mkenums.in CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / glib2 / patches

Annotation of pkgsrc/devel/glib2/patches/patch-gobject_glib-mkenums.in, Revision 1.5

1.5     ! prlw1       1: $NetBSD: patch-gobject_glib-mkenums.in,v 1.4 2018/04/01 20:26:25 joerg Exp $
1.1       prlw1       2:
1.4       joerg       3: - Do not print failing characters that might not be ASCII
1.1       prlw1       4:
1.4       joerg       5: --- gobject/glib-mkenums.in.orig       2018-01-08 20:00:49.000000000 +0000
1.1       prlw1       6: +++ gobject/glib-mkenums.in
1.4       joerg       7: @@ -88,9 +88,8 @@ else:
                      8:  # https://bugzilla.gnome.org/show_bug.cgi?id=785113#c20
                      9:  def replace_and_warn(err):
                     10:      # 7 characters of context either side of the offending character
                     11: -    print_warning('UnicodeWarning: {} at {} ({})'.format(
                     12: -        err.reason, err.start,
                     13: -        err.object[err.start - 7:err.end + 7]))
                     14: +    print_warning('UnicodeWarning: {} at {}'.format(
                     15: +        err.reason, err.start))
                     16:      return ('?', err.end)
                     17:
                     18:  codecs.register_error('replace_and_warn', replace_and_warn)

CVSweb <webmaster@jp.NetBSD.org>