Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 916550 Details for
Bug 948123
media-libs/quesoglc-9999-r1 new ebuild with python3 patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[New ebuild] media-libs/quesoglc/files/quesoglc-9999-python3.patch
quesoglc-9999-python3.patch (text/plain), 1.98 KB, created by
Jon Daniel
on 2025-01-14 23:01:25 UTC
(
hide
)
Description:
[New ebuild] media-libs/quesoglc/files/quesoglc-9999-python3.patch
Filename:
MIME Type:
Creator:
Jon Daniel
Created:
2025-01-14 23:01:25 UTC
Size:
1.98 KB
patch
obsolete
>diff '--color=auto' -burN quesoglc-code/database/buildDB.py quesoglc/database/buildDB.py >--- quesoglc-code/database/buildDB.py 2025-01-14 20:22:02.542544750 +0100 >+++ quesoglc/database/buildDB.py 2025-01-14 20:21:16.906548207 +0100 >@@ -20,24 +20,24 @@ > # > # $Id$ > >-import urllib, string, sqlite3 >+import urllib.request, string, sqlite3 > >-print "Open URL..." >-unicodata = urllib.urlopen("http://www.unicode.org/Public/UNIDATA/UnicodeData.txt") >-print "Read data from URL..." >+print("Open URL...") >+unicodata = urllib.request.urlopen("http://www.unicode.org/Public/UNIDATA/UnicodeData.txt") >+print("Read data from URL...") > lignes = unicodata.readlines() >-print "Close URL..." >+print("Close URL...") > unicodata.close() > >-print "Open SQLite DB..." >+print("Open SQLite DB...") > connection = sqlite3.connect('quesoglc.db') > db = connection.cursor() > db.execute('''create table unicode (rank INTEGER PRIMARY KEY, code INTEGER, name TEXT)''') > >-print "Write data into SQLite DB..." >+print("Write data into SQLite DB...") > for s in lignes: >- liste = string.split(s, ';') >- code = eval('0x'+liste[0]) >+ liste = s.split(';'.encode()) >+ code = eval('0x'.encode()+liste[0]) > name = liste[1] > if name == '<control>': > continue >@@ -46,4 +46,4 @@ > connection.commit() > db.close() > >-print "Success !!!" >+print("Success !!!") >diff '--color=auto' -burN quesoglc-code/tests/test18.c quesoglc/tests/test18.c >--- quesoglc-code/tests/test18.c 2025-01-14 20:22:02.705544738 +0100 >+++ quesoglc/tests/test18.c 2025-01-14 20:21:17.093548193 +0100 >@@ -74,10 +74,10 @@ > > /* Display the name of the font and cross-check that it does not map string[0] > */ >- printf("Font #%d: %s\n", font, glcGetFontc(font, GLC_FAMILY)); >+ printf("Font #%d: %s\n", font, (char*)glcGetFontc(font, GLC_FAMILY)); > if (glcGetFontMap(font, string[0])) { > printf("The char 0x%x is mapped in %s while it should not\n", string[0], >- glcGetFontc(font, GLC_FAMILY)); >+ (char*)glcGetFontc(font, GLC_FAMILY)); > return -1; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 948123
:
916549
| 916550 |
916553
|
916554
|
916555
|
916556
|
916557
|
916558
|
916561
|
916564
|
916565
|
916566
|
916583
|
916584
|
916585
|
916612