FreeBSD Bugzilla – Attachment 253195 Details for
Bug 281083
devel/glib20 and devel/gobject-introspection: update to 2.82 and 1.82
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix build
patch.stardict (text/plain), 3.22 KB, created by
mew14930xvi
on 2024-08-31 00:16:05 UTC
(
hide
)
Description:
fix build
Filename:
MIME Type:
Creator:
mew14930xvi
Created:
2024-08-31 00:16:05 UTC
Size:
3.22 KB
patch
obsolete
>diff --git a/textproc/stardict3/files/patch-dict__src__lib__stddict.cpp b/textproc/stardict3/files/patch-dict__src__lib__stddict.cpp >index 8705daeefa1e..2938868b2f95 100644 >--- a/textproc/stardict3/files/patch-dict__src__lib__stddict.cpp >+++ b/textproc/stardict3/files/patch-dict__src__lib__stddict.cpp >@@ -1,5 +1,5 @@ >---- ./dict/src/lib/stddict.cpp.orig 2012-02-17 08:58:47.000000000 +0000 >-+++ ./dict/src/lib/stddict.cpp 2013-10-09 16:16:36.938640507 +0000 >+--- dict/src/lib/stddict.cpp.orig 2024-08-30 23:21:06 UTC >++++ dict/src/lib/stddict.cpp > @@ -32,6 +32,7 @@ > #include <glib.h> > #include <glib/gi18n.h> >@@ -8,3 +8,21 @@ > #include <algorithm> > #include <memory> > >+@@ -2532,7 +2533,7 @@ bool Libs::LookupSynonymSimilarWord(const gchar* sWord >+ } >+ // Upper the first character and lower others. >+ if (!bFound) { >+- gchar *nextchar = g_utf8_next_char(sWord); >++ gchar *nextchar = const_cast<gchar*>(g_utf8_next_char(sWord)); >+ gchar *firstchar = g_utf8_strup(sWord, nextchar - sWord); >+ nextchar = g_utf8_strdown(nextchar, -1); >+ casestr = g_strdup_printf("%s%s", firstchar, nextchar); >+@@ -2642,7 +2643,7 @@ bool Libs::LookupSimilarWord(const gchar* sWord, glong >+ } >+ // Upper the first character and lower others. >+ if (!bFound) { >+- gchar *nextchar = g_utf8_next_char(sWord); >++ gchar *nextchar = const_cast<gchar*>(g_utf8_next_char(sWord)); >+ gchar *firstchar = g_utf8_strup(sWord, nextchar - sWord); >+ nextchar = g_utf8_strdown(nextchar, -1); >+ casestr = g_strdup_printf("%s%s", firstchar, nextchar); >diff --git a/textproc/sdcv/files/patch-src_stardict__lib.cpp b/textproc/sdcv/files/patch-src_stardict__lib.cpp >new file mode 100644 >index 000000000000..cda42f2018b4 >--- /dev/null >+++ b/textproc/sdcv/files/patch-src_stardict__lib.cpp >@@ -0,0 +1,11 @@ >+--- src/stardict_lib.cpp.orig 2024-08-30 23:01:07 UTC >++++ src/stardict_lib.cpp >+@@ -1047,7 +1047,7 @@ bool Libs::LookupSimilarWord(const gchar *sWord, std:: >+ } >+ // Upper the first character and lower others. >+ if (!bFound) { >+- gchar *nextchar = g_utf8_next_char(sWord); >++ gchar *nextchar = const_cast<gchar*>(g_utf8_next_char(sWord)); >+ gchar *firstchar = g_utf8_strup(sWord, nextchar - sWord); >+ nextchar = g_utf8_strdown(nextchar, -1); >+ casestr = g_strdup_printf("%s%s", firstchar, nextchar); >diff --git a/textproc/qstardict/files/patch-plugins_stardict_stardict__lib.cpp b/textproc/qstardict/files/patch-plugins_stardict_stardict__lib.cpp >new file mode 100644 >index 000000000000..f18434a04af0 >--- /dev/null >+++ b/textproc/qstardict/files/patch-plugins_stardict_stardict__lib.cpp >@@ -0,0 +1,11 @@ >+--- plugins/stardict/stardict_lib.cpp.orig 2024-08-30 23:12:18 UTC >++++ plugins/stardict/stardict_lib.cpp >+@@ -1110,7 +1110,7 @@ bool Libs::LookupSimilarWord(const gchar *sWord, glong >+ } >+ // Upper the first character and lower others. >+ if (!bFound) { >+- gchar *nextchar = g_utf8_next_char(sWord); >++ gchar *nextchar = const_cast<gchar*>(g_utf8_next_char(sWord)); >+ gchar *firstchar = g_utf8_strup(sWord, nextchar - sWord); >+ nextchar = g_utf8_strdown(nextchar, -1); >+ casestr = g_strdup_printf("%s%s", firstchar, nextchar);
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
Flags:
vishwin
:
maintainer-approval?
(
makc
)
vishwin
:
maintainer-approval?
(citrin)
Actions:
View
|
Diff
Attachments on
bug 281083
:
253109
| 253195 |
253279