Skip to content

Commit

Permalink
[ci] fix utf-8 camname
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain committed Oct 29, 2023
1 parent d85cd67 commit 500cbaa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/dvb_ci/dvbci_appmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <lib/base/eerror.h>
#include <lib/dvb_ci/dvbci_appmgr.h>
#include <lib/dvb_ci/dvbci_ui.h>
#include <lib/base/estring.h>

eDVBCIApplicationManagerSession::eDVBCIApplicationManagerSession(eDVBCISlot *tslot)
{
Expand Down Expand Up @@ -50,7 +51,11 @@ int eDVBCIApplicationManagerSession::receivedAPDU(const unsigned char *tag,const
eDebugNoNewLine("\n");

m_app_name = str;
/* emit */ eDVBCI_UI::getInstance()->m_messagepump.send(eDVBCIInterfaces::Message(eDVBCIInterfaces::Message::appNameChanged, slot->getSlotID(), str));
if(m_app_name.size() > 0 && !isUTF8(m_app_name)) {
m_app_name = repairUTF8(m_app_name.c_str(), m_app_name.size());
eDebug("[CI AM] fixed menu string: %s", m_app_name.c_str());
}
/* emit */ eDVBCI_UI::getInstance()->m_messagepump.send(eDVBCIInterfaces::Message(eDVBCIInterfaces::Message::appNameChanged, slot->getSlotID(), m_app_name.c_str()));

/* emit */ eDVBCI_UI::getInstance()->m_messagepump.send(eDVBCIInterfaces::Message(eDVBCIInterfaces::Message::slotStateChanged, slot->getSlotID(), 2));
break;
Expand Down

0 comments on commit 500cbaa

Please sign in to comment.