Crash at download start with Spanish locale
Bug #209277 reported by
eMTee
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DC++ |
Fix Released
|
High
|
Unassigned |
Bug Description
If locale set to se (Spanish) both 0.705 and svn1085 are crash when a download begins. Happens in ADC and NMDC hubs either. XP SP2, seems independent on OS language/regional settings.
To reproduce : set Spanish locale, go to a hub, try to get a filelist.
Related support issue : https:/
Changed in dcplusplus: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
the crash happens because of the string which is on line 702 of TransferView.cpp: ring(str( TF_("Requesting %1%") % getFile(d)));
ui->setStatusSt
the console window only tells the following when the crash happens: :io::bad_ format_ string' bad_format_ string: format-string is ill-formed
terminate called after throwing an instance of 'boost:
what(): boost::
and GDB has no call stack to show.
the string seems translated correctly in the .po in the repository: iew.cpp: 703
#: win32/TransferV
#, boost-format
msgid "Requesting %1%"
msgstr "Solicitando %1%"
however, in the .mo file provided with DC++ 0.705, this string has become:
Solicitando % 1%
besides fixing the translated string, there should be a way to catch that boost:: bad_format_ string exception and not make the whole program crash when an altered string is encountered...