showmood: use correct console encoding

develop
lethosor 2015-12-24 21:34:38 -05:00
parent 25e808be38
commit de160de0e8
2 changed files with 6 additions and 1 deletions

@ -36,6 +36,11 @@ New Features
------------
- `search-plugin`: Support for the location occupation assignment menu
Fixes
-----
- `showmood`: Fixed name display on OS X/Linux
DFHack 0.40.24-r5
=================

@ -69,7 +69,7 @@ command_result df_showmood (color_ostream &out, vector <string> & parameters)
out.printerr("Dwarf with strange mood does not have a mood type!\n");
continue;
}
out.print("%s is currently ", Translation::TranslateName(&unit->name, false).c_str());
out.print("%s is currently ", DF2CONSOLE(Translation::TranslateName(&unit->name, false)).c_str());
switch (unit->mood)
{
case mood_type::Macabre: