// -*- C++ -*-
/* This file is part of
- * ======================================================
- *
+ * ======================================================
+ *
* LyX, The Document Processor
- *
+ *
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
*
inline
bool operator<(Format const & a, Format const & b)
{
- return compare_no_case(a.prettyname(), b.prettyname()) < 0;
+ // use the compare_ascii_no_case instead of compare_no_case,
+ // because in turkish, 'i' is not the lowercase version of 'I',
+ // and thus turkish locale breaks parsing of tags.
+
+ return compare_ascii_no_case(a.prettyname(), b.prettyname()) < 0;
}
///
class Formats {
public:
- ///
- typedef std::vector<Format> FormatList;
+ ///
+ typedef std::vector<Format> FormatList;
///
typedef FormatList::const_iterator const_iterator;
///
///
void add(string const & name);
///
- void add(string const & name, string const & extension,
+ void add(string const & name, string const & extension,
string const & prettyname, string const & shortcut);
///
void erase(string const & name);
///
class Converters {
public:
- typedef std::vector<Converter> ConverterList;
+ typedef std::vector<Converter> ConverterList;
///
typedef ConverterList::const_iterator const_iterator;
///
}
private:
///
- bool scanLog(Buffer const * buffer, string const & command,
+ bool scanLog(Buffer const * buffer, string const & command,
string const & filename);
///
bool runLaTeX(Buffer const * buffer, string const & command);