]> git.lyx.org Git - features.git/commitdiff
A few small fixes
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 Sep 2000 12:16:02 +0000 (12:16 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 22 Sep 2000 12:16:02 +0000 (12:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1031 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
lib/doc/LaTeXConfig.lyx.in
src/language.C
src/support/lyxstring.C

index e51f20cf8af387a29bf4b0bface794d3324b337b..b35fde8e6a9855f35f1c594ddee0c6c0d9f66dd4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2000-09-22  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * lib/doc/LaTeXConfig.lyx.in: updated.
+
+       * src/language.C (initL): remove language "francais" and change a
+       bit the names of the two other french variations.
+
+       * src/support/lyxstring.C (lyxstring): do not apply strlen() on a
+       string that may not be 0-terminated.
+
 2000-09-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
        * src/Makefile.am (lyx_SOURCES): remove table.C and Table.h
index 445b090d95cce66d23af62e6245ea122c6ffd218..c4a344dce715947e6eeac322bb7faa317a0a97f6 100644 (file)
@@ -1062,21 +1062,6 @@ a4
 Other packages
 \layout Subsection
 
-array
-\layout Description
-
-Found: @chk_array@
-\layout Description
-
-CTAN: 
-\family typewriter 
-macros/latex/required/tools/array.dtx
-\layout Description
-
-Notes: The package array is needed by LyX to be able to output vertical
- alignment other then ''top'' for tabulars.
-\layout Subsection
-
 algorithm
 \layout Description
 
@@ -1113,6 +1098,21 @@ index of algorithms
  too.
 \layout Subsection
 
+array
+\layout Description
+
+Found: @chk_array@
+\layout Description
+
+CTAN: 
+\family typewriter 
+macros/latex/required/tools/array.dtx
+\layout Description
+
+Notes: The package array is needed by LyX to be able to output vertical
+ alignment other then ''top'' for tabulars.
+\layout Subsection
+
 babel
 \layout Description
 
@@ -1311,6 +1311,38 @@ default
 .
 \layout Subsection
 
+longtable
+\layout Description
+
+Found: @chk_longtable@
+\layout Description
+
+CTAN: 
+\family typewriter 
+macros/latex/packages/tools/longtable.dtx
+\layout Description
+
+Notes: The package 
+\family sans 
+longtable
+\family default 
+ is needed by LyX to be able to output correctly multipage tables.
+\layout Subsection
+
+prettyref
+\layout Description
+
+Found: @chk_prettyref@
+\layout Description
+
+CTAN: 
+\family typewriter 
+macros/latex/contrib/supported/prettyref
+\layout Description
+
+Notes: none yet
+\layout Subsection
+
 rotating
 \layout Description
 
@@ -1368,24 +1400,6 @@ setspace
  is needed by LyX to change the line spacing of your document.
 \layout Subsection
 
-longtable
-\layout Description
-
-Found: @chk_longtable@
-\layout Description
-
-CTAN: 
-\family typewriter 
-macros/latex/packages/tools/longtable.dtx
-\layout Description
-
-Notes: The package 
-\family sans 
-longtable
-\family default 
- is needed by LyX to be able to output correctly multipage tables.
-\layout Subsection
-
 url
 \layout Description
 
@@ -1404,25 +1418,15 @@ url
  is needed by LyX to be able to output url's corrently.
 \layout Subsection
 
-prettyref
-\layout Description
-
-Found: @chk_prettyref@
-\layout Description
-
-CTAN: ??
-\layout Description
-
-Notes: none yet
-\layout Subsection
-
 varioref
 \layout Description
 
 Found: @chk_varioref@
 \layout Description
 
-CTAN: ??
+CTAN: 
+\family typewriter 
+macros/latex/required/tools/
 \layout Description
 
 Notes: none yet
index ec9dadd28e7c0d4ab6c5d4b2de09005ffa2bcf50..a6f4e8a05f15891e8b120277104c471c26146823 100644 (file)
@@ -70,9 +70,8 @@ void LangInit::initL()
        { "esperanto", N_("Esperanto"), false, &iso8859_3 },
        { "estonian", N_("Estonian"), false, &iso8859_4 },
        { "finnish", N_("Finnish"), false, &iso8859_1 },
-       { "francais", N_("Francais"), false, &iso8859_1 },
-       { "french", N_("French"), false, &iso8859_1 },
-       { "frenchb", N_("Frenchb"), false, &iso8859_1 },
+       { "frenchb", N_("French"), false, &iso8859_1 },
+       { "french", N_("French (GUTenberg)"), false, &iso8859_1 },
        { "galician", N_("Galician"), false, &iso8859_1 },
        { "german", N_("German"), false, &iso8859_1 },
        { "greek", N_("Greek"), false, &iso8859_7 },
index 1e3b542a6d7c58e9734eaeb7720a12d03dba48d8..a15cac0f374e9b19f651665b0bffd1c73add9c95 100644 (file)
@@ -415,7 +415,11 @@ lyxstring::lyxstring(value_type const * s, size_type n)
        Assert(s && n < npos); // STD!
        static Srep empty_rep(0, "");
        if (*s && n) { // s is not empty string and n > 0
-               rep = new Srep(min(strlen(s), n), s);
+               size_type l = 0;
+               while (l < n && s[l])
+                       l++;
+               rep = new Srep(l, s);
+               // rep = new Srep(min(strlen(s),n), s);
        } else {
                ++empty_rep.ref;
                rep = &empty_rep;