Bug 15661 - Usage of utf8 for strings breaks compilation of third-party software
Summary: Usage of utf8 for strings breaks compilation of third-party software
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard: MGA5TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-09 09:34 CEST by Guillaume Rousse
Modified: 2015-07-09 19:02 CEST (History)
1 user (show)

See Also:
Source RPM: wxgtk-3.0.2-1.mga5
CVE:
Status comment:


Attachments

Description Guillaume Rousse 2015-04-09 09:34:36 CEST
Usage of --enable-utf8 build option breaks compilation of third-party software, such as VeraCrypt (and probably others, such as TrueCrypt):

Compiling TextUserInterface.cpp
TextUserInterface.cpp: In member function 'virtual VeraCrypt::SharedPtr<VeraCrypt::VolumePassword> VeraCrypt::TextUserInterface::AskPassword(const wxString&, bool) const':
TextUserInterface.cpp:119:49: error: invalid const_cast from type 'const wxScopedWCharBuffer {aka const wxScopedCharTypeBuffer<wchar_t>}' to type 'wchar_t*'
const_cast <wchar_t *=""> (passwordStr.wc_str())[i] = L'X';

According to upstream, this breaks behaviour documented in official API:
http://sourceforge.net/p/veracrypt/tickets/34/

This option is not used in fedora or debian build of this package.

Reproducible: 

Steps to Reproduce:
Marja Van Waes 2015-04-11 20:40:55 CEST

CC: (none) => marja11
Assignee: bugsquad => jani.valimaa
Source RPM: wxgtk => wxgtk-3.0.2-1.mga5

Comment 1 Marja Van Waes 2015-04-11 20:42:02 CEST
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged

Comment 2 Jani Välimaa 2015-04-12 10:31:43 CEST
It's already fixed in SVN [1] and a freeze push was requested [2] some time ago, but there wasn't any decision if we should push it or not.

Even though I'm marked as a maintainer, I don't really maintain or know much about wxgtk, I was just the first one who pushed it to BS. Will assign this back to bug squad and assign wxgtk to 'nobody' in maintdb.

[1] http://svnweb.mageia.org/packages?view=revision&revision=818725
[2] https://ml.mageia.org/l/arc/dev/2015-03/msg00498.html

Keywords: Triaged => (none)

Jani Välimaa 2015-04-12 11:01:48 CEST

Assignee: jani.valimaa => bugsquad

Samuel Verschelde 2015-06-06 01:30:18 CEST

Whiteboard: (none) => MGA5TOO

Comment 3 Guillaume Rousse 2015-07-09 19:02:12 CEST
Fixed in cauldron, closing.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.