parent
6d4a3088ba
commit
4f67e0a9d1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475151
3 changed files with 4 additions and 50 deletions
|
@ -2,8 +2,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= mypaint
|
||||
PORTVERSION= 1.2.0
|
||||
PORTREVISION= 7
|
||||
PORTVERSION= 1.2.1
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= https://github.com/mypaint/mypaint/releases/download/${PORTVERSION:S/^/v/}/
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
SHA256 (mypaint-1.2.0.tar.xz) = cdab33dd0c146cf678c97bcdd44e561f97a0aec40421b8c6785a74b33b9728e2
|
||||
SIZE (mypaint-1.2.0.tar.xz) = 37895196
|
||||
TIMESTAMP = 1532315716
|
||||
SHA256 (mypaint-1.2.1.tar.xz) = ed2349382f6a0c583d7defae06427e97ac7d14acb77b9e2c0fc7171ddd96d3c7
|
||||
SIZE (mypaint-1.2.1.tar.xz) = 37897196
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
--- lib/glib.py.orig 2016-01-15 19:42:55 UTC
|
||||
+++ lib/glib.py
|
||||
@@ -1,5 +1,5 @@
|
||||
# This file is part of MyPaint.
|
||||
-# Copyright (C) 2015 by Andrew Chadwick <a.t.chadwick@gmail.com>
|
||||
+# Copyright (C) 2015-2016 by the MyPaint Development Team.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -19,11 +19,12 @@ unicode, and may not even be UTF-8). Thi
|
||||
## Imports
|
||||
|
||||
import sys
|
||||
-from logging import getLogger
|
||||
-logger = getLogger(__name__)
|
||||
+import logging
|
||||
|
||||
from gi.repository import GLib
|
||||
|
||||
+logger = logging.getLogger(__name__)
|
||||
+
|
||||
|
||||
## File path getter functions
|
||||
|
||||
@@ -35,7 +36,6 @@ def filename_to_unicode(opsysstring):
|
||||
:returns: the converted filename
|
||||
:rtype: unicode
|
||||
|
||||
- >>> from gi.repository import GLib
|
||||
>>> filename_to_unicode('/ascii/only/path')
|
||||
u'/ascii/only/path'
|
||||
>>> filename_to_unicode(None) is None
|
||||
@@ -54,7 +54,12 @@ def filename_to_unicode(opsysstring):
|
||||
# Other systems are dependent in opaque ways on the environment.
|
||||
if not isinstance(opsysstring, str):
|
||||
raise TypeError("Argument must be bytes")
|
||||
- ustring = GLib.filename_to_utf8(opsysstring, -1, 0, 0)
|
||||
+ # This function's annotation seems to vary quite a bit.
|
||||
+ # See https://github.com/mypaint/mypaint/issues/634
|
||||
+ try:
|
||||
+ ustring, _, _ = GLib.filename_to_utf8(opsysstring, -1)
|
||||
+ except TypeError:
|
||||
+ ustring = GLib.filename_to_utf8(opsysstring, -1, 0, 0)
|
||||
if ustring is None:
|
||||
raise UnicodeDecodeError(
|
||||
"GLib failed to convert %r to a UTF-8 string. "
|
Loading…
Reference in a new issue