Commit 53564183 authored by Marian Durkovic's avatar Marian Durkovic

Add bunch of missing UTF8 conversions

parent e5507e8c
...@@ -119,7 +119,7 @@ BookmarkEditDialog::~BookmarkEditDialog() ...@@ -119,7 +119,7 @@ BookmarkEditDialog::~BookmarkEditDialog()
void BookmarkEditDialog::OnOK( wxCommandEvent &event ) void BookmarkEditDialog::OnOK( wxCommandEvent &event )
{ {
if( p_seekpoint->psz_name ) free( p_seekpoint->psz_name ); if( p_seekpoint->psz_name ) free( p_seekpoint->psz_name );
p_seekpoint->psz_name = strdup( name_text->GetValue().mb_str() ); p_seekpoint->psz_name = strdup( name_text->GetValue().mb_str(wxConvUTF8) );
p_seekpoint->i_byte_offset = atoi( bytes_text->GetValue().mb_str() ); p_seekpoint->i_byte_offset = atoi( bytes_text->GetValue().mb_str() );
p_seekpoint->i_time_offset = 1000000 * p_seekpoint->i_time_offset = 1000000 *
atoll( time_text->GetValue().mb_str() ) ; atoll( time_text->GetValue().mb_str() ) ;
......
...@@ -935,9 +935,9 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) ) ...@@ -935,9 +935,9 @@ void Playlist::OnSave( wxCommandEvent& WXUNUSED(event) )
if( dialog.ShowModal() == wxID_OK ) if( dialog.ShowModal() == wxID_OK )
{ {
if( dialog.GetPath().mb_str() ) if( dialog.GetPath().mb_str(wxConvUTF8) )
{ {
playlist_Export( p_playlist, dialog.GetPath().mb_str(), playlist_Export( p_playlist, dialog.GetPath().mb_str(wxConvUTF8),
formats[dialog.GetFilterIndex()].psz_module ); formats[dialog.GetFilterIndex()].psz_module );
} }
} }
...@@ -951,7 +951,7 @@ void Playlist::OnOpen( wxCommandEvent& WXUNUSED(event) ) ...@@ -951,7 +951,7 @@ void Playlist::OnOpen( wxCommandEvent& WXUNUSED(event) )
if( dialog.ShowModal() == wxID_OK ) if( dialog.ShowModal() == wxID_OK )
{ {
playlist_Import( p_playlist, dialog.GetPath().mb_str() ); playlist_Import( p_playlist, dialog.GetPath().mb_str(wxConvUTF8) );
} }
} }
......
...@@ -217,7 +217,7 @@ void VLMPanel::OnLoad( wxCommandEvent &event ) ...@@ -217,7 +217,7 @@ void VLMPanel::OnLoad( wxCommandEvent &event )
p_file_dialog->SetTitle( wxU(_("Load Configuration") ) ); p_file_dialog->SetTitle( wxU(_("Load Configuration") ) );
if( p_file_dialog->ShowModal() == wxID_OK ) if( p_file_dialog->ShowModal() == wxID_OK )
{ {
vlm_Load( p_vlm->GetVLM(), p_file_dialog->GetPath().mb_str() ); vlm_Load( p_vlm->GetVLM(), p_file_dialog->GetPath().mb_str(wxConvUTF8));
} }
Update(); Update();
} }
...@@ -231,7 +231,7 @@ void VLMPanel::OnSave( wxCommandEvent &event ) ...@@ -231,7 +231,7 @@ void VLMPanel::OnSave( wxCommandEvent &event )
p_file_dialog->SetTitle( wxU(_("Save Configuration") ) ); p_file_dialog->SetTitle( wxU(_("Save Configuration") ) );
if( p_file_dialog->ShowModal() == wxID_OK ) if( p_file_dialog->ShowModal() == wxID_OK )
{ {
vlm_Save( p_vlm->GetVLM(), p_file_dialog->GetPath().mb_str() ); vlm_Save( p_vlm->GetVLM(), p_file_dialog->GetPath().mb_str(wxConvUTF8));
} }
} }
......
...@@ -718,7 +718,7 @@ void wizInputPage::OnWizardPageChanging(wxWizardEvent& event) ...@@ -718,7 +718,7 @@ void wizInputPage::OnWizardPageChanging(wxWizardEvent& event)
} }
else else
{ {
p_parent->SetMrl( (const char *)mrl_text->GetValue().mb_str() ); p_parent->SetMrl( (const char *)mrl_text->GetValue().mb_str(wxConvUTF8) );
} }
} }
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment