BufferParams.cpp, InsetListings.cpp: fix two Unicode strings, patch by Vincent

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@26325 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-09-07 12:17:43 +00:00
parent aab7cfe183
commit a8afed86ff
2 changed files with 2 additions and 2 deletions

View File

@ -929,7 +929,7 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
os << "\\lstset{";
// do not test validity because listings_params is supposed to be valid
string par = InsetListingsParams(listings_params).separatedParams(true);
os << from_ascii(par);
os << from_utf8(par);
// count the number of newlines
for (size_t i = 0; i < par.size(); ++i)
if (par[i] == '\n')

View File

@ -180,7 +180,7 @@ int InsetListings::latex(Buffer const & buf, odocstream & os,
if (param_string.empty())
os << "\\lstinline" << *delimiter;
else
os << "\\lstinline[" << from_ascii(param_string) << "]" << *delimiter;
os << "\\lstinline[" << from_utf8(param_string) << "]" << *delimiter;
} else {
OutputParams rp = runparams;
rp.local_font = &text_.real_current_font;