Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 563282 Details for
Bug 676920
app-text/stardict-4.0.0_pre20170304 needs patching for enchant-2.2.3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
necessary patch (just renamed)
stardict-4.0.0_pre20170304-tabfile.patch (text/plain), 1.12 KB, created by
Helmut Jarausch
on 2019-01-30 15:53:47 UTC
(
hide
)
Description:
necessary patch (just renamed)
Filename:
MIME Type:
Creator:
Helmut Jarausch
Created:
2019-01-30 15:53:47 UTC
Size:
1.12 KB
patch
obsolete
>From adb01aafd94b6bd5b5cc49889f4f09d483ee5ac4 Mon Sep 17 00:00:00 2001 >From: Nikolay Korotkiy <sikmir@gmail.com> >Date: Thu, 1 Sep 2016 14:11:41 +0300 >Subject: [PATCH] tabfile: incorrectly handles whitespace in file name > >Signed-off-by: Andrew Savchenko <bircoph@gmail.com> >--- > tools/src/libtabfile.cpp | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/tools/src/libtabfile.cpp b/tools/src/libtabfile.cpp >index dda256a..2ee9dfd 100644 >--- a/tools/src/libtabfile.cpp >+++ b/tools/src/libtabfile.cpp >@@ -22,6 +22,7 @@ > #include <cstring> > #include <cstdlib> > #include <string> >+#include <sstream> > #include <glib/gstdio.h> > #include <glib.h> > >@@ -228,9 +229,10 @@ static bool write_dictionary(const char *filename, GArray *array) > g_message("%s wordcount: %d.", get_impl(basefilename), array->len); > > #ifndef _WIN32 >- std::string command(std::string("dictzip ") + dicfilename); >+ std::stringstream command; >+ command << "dictzip \"" << dicfilename << "\""; > int result; >- result = system(command.c_str()); >+ result = system(command.str().c_str()); > if (result == -1) { > g_print("system() error!\n"); > } >-- >2.10.2 >
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 676920
:
563278
|
563280
| 563282