diff --git a/ZRColaCompile/dbsource.cpp b/ZRColaCompile/dbsource.cpp index 1d5849e..08f7f0d 100644 --- a/ZRColaCompile/dbsource.cpp +++ b/ZRColaCompile/dbsource.cpp @@ -716,7 +716,7 @@ bool ZRCola::DBSource::GetNormPerm(const winstd::com_obj& rs, std: size_t n = norm.length(); for (auto p = np.cbegin(), p_end = np.cend(); p != p_end; ++p) { if (p->size() != n) { - _ftprintf(stderr, wxT("%s: error ZCC0170: Inconsistent normalization sequence \"%.*s\" permutation length. Please make sure all permutation lengths match normalization sequence length (%u).\n"), m_filename.c_str(), n, norm.c_str(), n); + _ftprintf(stderr, wxT("%s: error ZCC0170: Inconsistent normalization sequence \"%.*hs\" permutation length. Please make sure all permutation lengths match normalization sequence length (%u).\n"), m_filename.c_str(), n, norm.c_str(), n); return false; } } diff --git a/ZRColaCompile/main.cpp b/ZRColaCompile/main.cpp index 031d503..b36072e 100644 --- a/ZRColaCompile/main.cpp +++ b/ZRColaCompile/main.cpp @@ -584,9 +584,9 @@ int _tmain(int argc, _TCHAR *argv[]) if (ZRCola::keyseq_db::keyseq::CompareSequence(ks1.seq(), ks1.seq_len(), ks2.seq(), ks2.seq_len()) == 0) { wxString seq_str; ZRCola::keyseq_db::GetSequenceAsText(ks1.seq(), ks1.seq_len(), seq_str); - _ftprintf(stderr, wxT("%s: warning ZCC0007: Duplicate key sequence (%ls => %s or %s). The keyboard behaviour will be unpredictable.\n"), + _ftprintf(stderr, wxT("%s: warning ZCC0007: Duplicate key sequence (%s => %s or %s). The keyboard behaviour will be unpredictable.\n"), (LPCTSTR)filenameIn.c_str(), - seq_str.c_str(), + (LPCTSTR)seq_str.c_str(), ZRCola::GetUnicodeDump(ks1.chr(), ks1.chr_len()).c_str(), ZRCola::GetUnicodeDump(ks2.chr(), ks2.chr_len()).c_str()); }