[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.4

1.4     ! joerg       1: $NetBSD: patch-gobject_glib-mkenums.in,v 1.3 2018/01/28 16:51:51 wiz Exp $
1.1       prlw1       2:
1.2       prlw1       3: - Revert 4395a897 Use env to run the Python-based tools
                      4:   https://bugzilla.gnome.org/show_bug.cgi?id=788527
1.4     ! joerg       5: - Do not print failing characters that might not be ASCII
1.1       prlw1       6:
1.4     ! joerg       7: --- gobject/glib-mkenums.in.orig       2018-01-08 20:00:49.000000000 +0000
1.1       prlw1       8: +++ gobject/glib-mkenums.in
                      9: @@ -1,4 +1,4 @@
                     10: -#!/usr/bin/env @PYTHON@
                     11: +#!@PYTHON@
                     12:
                     13:  # If the code below looks horrible and unpythonic, do not panic.
                     14:  #
1.4     ! joerg      15: @@ -88,9 +88,8 @@ else:
        !            16:  # https://bugzilla.gnome.org/show_bug.cgi?id=785113#c20
        !            17:  def replace_and_warn(err):
        !            18:      # 7 characters of context either side of the offending character
        !            19: -    print_warning('UnicodeWarning: {} at {} ({})'.format(
        !            20: -        err.reason, err.start,
        !            21: -        err.object[err.start - 7:err.end + 7]))
        !            22: +    print_warning('UnicodeWarning: {} at {}'.format(
        !            23: +        err.reason, err.start))
        !            24:      return ('?', err.end)
        !            25:
        !            26:  codecs.register_error('replace_and_warn', replace_and_warn)

CVSweb <webmaster@jp.NetBSD.org>