Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-06 Thread rgheck
Philippe Charpentier wrote: I just test rev. 27282: - for the question of excluding modules, it works now if the class contain the tag ExcludesModule, that is: if I create a new document with the class "article (AMS)" then the module "theorems-ams" is loaded; if I change to the class "article (A

Re: UTF-8 bug in modules...

2008-11-05 Thread =??B?SsO8cmdlbiBTcGl0em3DvGxsZXI=?=
Richard Heck wrote: >> PS. formatStrVec fails at sorting non-ASCII chars correctly. Modules such >> as "?yster Cult" would be sorted after Z. >> >> > I don't understand. formatStrVec doesn't sort things, does it Yes, sorry, a misunderstanding on my side. formatStrVec is innocent, still the

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-05 Thread Philippe Charpentier
Richard Heck a écrit : > rgheck wrote: >> Charpentier Philippe wrote: >>> For the first question: >>> if I put >>> ExcludesModule theorems-ams >>> in my class then changing from "article (AMS)" to "article (AMS) >>> Francais" >>> has the consequence that no module is loaded which is not very nice >

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-05 Thread Richard Heck
rgheck wrote: Charpentier Philippe wrote: For the first question: if I put ExcludesModule theorems-ams in my class then changing from "article (AMS)" to "article (AMS) Francais" has the consequence that no module is loaded which is not very nice I think... OK. I'll look at this. The algorith

Re: UTF-8 bug in modules...

2008-11-05 Thread Richard Heck
Jürgen Spitzmüller wrote: Jürgen Spitzmüller wrote: I'll have a look at this tomorrow. There's probably still a place where the wrong translation thing is called. I cannot reproduce this. Strange. OK, I found it (this only triggered when a module with non-ASCII char was req

Re: UTF-8 bug in modules...

2008-11-05 Thread =??B?SsO8cmdlbiBTcGl0em3DvGxsZXI=?=
J??rgen Spitzm??ller wrote: >> I'll have a look at this tomorrow. There's probably still a place where >> the wrong translation thing is called. > > I cannot reproduce this. Strange. OK, I found it (this only triggered when a module with non-ASCII char was required/excluded). Should be fixed n

Re: UTF-8 bug in modules...

2008-11-05 Thread =??B?SsO8cmdlbiBTcGl0em3DvGxsZXI=?=
Richard Heck wrote: > I'll have a look at this tomorrow. There's probably still a place where > the wrong translation thing is called. I cannot reproduce this. Strange. J??rgen

Re: UTF-8 bug in modules...

2008-11-05 Thread Richard Heck
Philippe Charpentier wrote: Hi I just tried rev. 27267 and there is still a UTF-8 problem in the name of the module. If I put a non ASCII character in it lyx crashed (when clicking on the module) with the following output: lassert.cpp(21): ASSERTION static_cast(ascii[i]) < 0x80 VIOLATED IN docst

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread rgheck
Charpentier Philippe wrote: rgheck a écrit : rgheck wrote: Charpentier Philippe wrote: Similarly, if I create a document in the class "article (AMS) en Français" the module "theorems-ams-fr" is automatically loaded but the modules "theorems-ams", "theorems-starred" and "theorems-std" can stil

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread Charpentier Philippe
rgheck a écrit : rgheck wrote: Charpentier Philippe wrote: Similarly, if I create a document in the class "article (AMS) en Français" the module "theorems-ams-fr" is automatically loaded but the modules "theorems-ams", "theorems-starred" and "theorems-std" can still be loaded (although they ar

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > > Jurgen will know what to do, I hope: The change is needed in > > GuiDocument::loadModuleInfo(). > > Yes, I have a fix in the pipe. Should be fixed now (rev. 27248). Jürgen

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread Jürgen Spitzmüller
rgheck wrote: > Jurgen will know what to do, I hope: The change is needed in > GuiDocument::loadModuleInfo(). Yes, I have a fix in the pipe. Jürgen

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread rgheck
rgheck wrote: Charpentier Philippe wrote: Similarly, if I create a document in the class "article (AMS) en Français" the module "theorems-ams-fr" is automatically loaded but the modules "theorems-ams", "theorems-starred" and "theorems-std" can still be loaded (although they are excluded in "the

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread rgheck
Charpentier Philippe wrote: Hi, if you define a new module whose name contains non ASCII characters, like #\DeclareLyXModule{Théoremes (AMS) Francais} then lyx-1.6 crashes with the following output: lassert.cpp(21): ASSERTION static_cast(ascii[i]) < 0x80 VIOLATED IN docstring.cpp:50 Assertion