Georg, does the following patch look right? Without it, all integers
are in hex in lyxerr output, which is a real pain.

JMarc

Index: src/encoding.C
===================================================================
--- src/encoding.C	(révision 17589)
+++ src/encoding.C	(copie de travail)
@@ -169,7 +169,8 @@ docstring const Encoding::latexChar(char
 		CharInfoMap::const_iterator const it = unicodesymbols.find(c);
 		if (it == unicodesymbols.end())
 			lyxerr << "Could not find LaTeX command for character 0x"
-			       << std::hex << c << ".\nLaTeX export will fail."
+			       << std::hex << c << std::dec
+			       << ".\nLaTeX export will fail."
 			       << endl;
 		else
 			return it->second.command;
@@ -322,8 +323,9 @@ void Encodings::read(FileName const & en
 				info.force = true;
 			else
 				lyxerr << "Ignoring unknown flag `" << flag
-				       << "' for symbol `0x" << std::hex
-				       << symbol << "'." << endl;
+				       << "' for symbol `0x" 
+				       << std::hex << symbol << std::dec 
+				       << "'." << endl;
 		}
 
 		if (!info.preamble.empty())
Index: src/support/unicode.C
===================================================================
--- src/support/unicode.C	(révision 17589)
+++ src/support/unicode.C	(copie de travail)
@@ -158,7 +158,7 @@ int IconvProcessor::convert(char const *
 					*reinterpret_cast<unsigned char const *>(buf + i);
 				lyxerr << " 0x" << b;
 			}
-			lyxerr << endl;
+			lyxerr << std::dec << endl;
 			break;
 		case EINVAL:
 			lyxerr << "EINVAL An incomplete multibyte sequence"
@@ -173,7 +173,7 @@ int IconvProcessor::convert(char const *
 					*reinterpret_cast<unsigned char const *>(buf + i);
 				lyxerr << " 0x" << b;
 			}
-			lyxerr << endl;
+			lyxerr << std::dec << endl;
 			break;
 		default:
 			lyxerr << "\tSome other error: " << errno << endl;

Reply via email to