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

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/devel/glib2/patches/patch-gobject_glib-mkenums.in between version 1.3 and 1.4

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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>