Re: LyX 1.1.3 trace log - reproducible
"Lars" == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | Lars Why not try to do a diff on trans.h? Lars I was just going to, but am currently on the wrong end of a Lars 9.6Kb connection... Good reason. Lars IMO the right fix is to change to Lars char * Trans::Match(int c)... Looks like a bad fix. It just dies when I try to input an accented character now. Lars Chars of any kind should not be used or this. I do not see how you will magically turn a signed char into an unsigned int without some kind of cast. JMarc
Re: LyX 1.1.3 trace log - reproducible
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> Why not try to do a diff on trans.h? Lars> I was just going to, but am currently on the wrong end of a Lars> 9.6Kb connection... Good reason. Lars> IMO the right fix is to change to Lars> char * Trans::Match(int c)... Looks like a bad fix. It just dies when I try to input an accented character now. Lars> Chars of any kind should not be used or this. I do not see how you will magically turn a signed char into an unsigned int without some kind of cast. JMarc
Re: LyX 1.1.3 trace log - reproducible
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | Why not try to do a diff on trans.h? I was just going to, but am currently on the wrong end of a 9.6Kb connection... | | Hmm, Lars, it seems that you got a bit overboard with cleanup: | | fantomas: cvs diff -r1.2 -r1.3 trans.h | No remote authentication | Index: trans.h | === | RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/trans.h,v | retrieving revision 1.2 | retrieving revision 1.3 | diff -u -r1.2 -r1.3 | --- trans.h 1999/10/02 16:21:00 1.2 | +++ trans.h 1999/11/04 01:40:19 1.3 | @@ -97,7 +97,7 @@ | | char* Trans::Match(char c) | { | - return keymap_[(unsigned char)c]; | + return keymap_[c]; | } | | | Try to imagine what happens when c is a signed char... I'll checkin a | fix. IMO the right fix is to change to char * Trans::Match(int c)... Chars of any kind should not be used or this. Lgb
Re: LyX 1.1.3 trace log - reproducible
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Why not try to do a diff on trans.h? I was just going to, but am currently on the wrong end of a 9.6Kb connection... | | Hmm, Lars, it seems that you got a bit overboard with cleanup: | | fantomas: cvs diff -r1.2 -r1.3 trans.h | No remote authentication | Index: trans.h | === | RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/trans.h,v | retrieving revision 1.2 | retrieving revision 1.3 | diff -u -r1.2 -r1.3 | --- trans.h 1999/10/02 16:21:00 1.2 | +++ trans.h 1999/11/04 01:40:19 1.3 | @@ -97,7 +97,7 @@ | | char* Trans::Match(char c) | { | - return keymap_[(unsigned char)c]; | + return keymap_[c]; | } | | | Try to imagine what happens when c is a signed char... I'll checkin a | fix. IMO the right fix is to change to char * Trans::Match(int c)... Chars of any kind should not be used or this. Lgb
Re: LyX 1.1.3 trace log - reproducible
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | The code which handles 8bit characters is in a very bad state | currently. Unfortunately, we do not know why it is broken. We are | trying to fix it. What have changed since 1.0.4 in these files? Do we have the same problem in 1.0.4? Lgb
Re: LyX 1.1.3 trace log - reproducible
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | The code which handles 8bit characters is in a very bad state | currently. Unfortunately, we do not know why it is broken. We are | trying to fix it. What have changed since 1.0.4 in these files? Do we have the same problem in 1.0.4? Lgb
LyX 1.1.3 trace log - reproducible
Hello dear Developers! After finishing one book (two editions - Croatian English) with LyX and taking advantage to mention LyX LaTeX as tools for producing layouts, I had a small pause. Soon, I have to start with some new writing and today I downloaded new 1.1.3 version. I just changed the strings in tex-accent.C to have capability to enter diacritic marks which are disabled by default in LyX (like r underdot), compiled the program and tried to see what's happening. I have defined dead keys in Xmodmap and I use latin-2 encoding in my documents (attached file croatian.kmap) plus sanskrit.bind (also attached) to add feature for entering sanskrit diacritic marks. Now I cannot see all of them on the screen although they appear in dvi output. Problem is with "i macron". More serious problem is crashing when trying to enter "C caron" (if I'm correct) - standard character in latin-2 encoding. The trace file is included. Sincerely, Sasa P.S. Keep up the beautiful work on LyX. It is really fantastic. Croatian specific characters # # # Local Dead Keys. The particular keysyms for dead keys were defined # using xkeycaps. # # # Bound to Mode_switch+` \bind "~S-~C-~M-dead_acute" "accent-acute" # Bound to Mode_switch+~ \bind "~S-~C-~M-dead_tilde" "accent-tilde" # Bound to Mode_switch+Shift+- \bind "~S-~C-~M-dead_macron" "accent-macron" # Bound to Mode_switch+Shift++' \bind "~S-~C-~M-dead_belowdot" "accent-underdot" # Bound to Mode_switch+* \bind "~S-~C-~M-abovedot" "accent-dot" Program received signal SIGSEGV, Segmentation fault. lyxstring::lyxstring (this=0xb3f0, x=@0x0, pos=0, n=4294967295) at lyxstring.C:434 434 Assert(pos = x.rep-sz); // STD! (gdb) bt #0 lyxstring::lyxstring (this=0xb3f0, x=@0x0, pos=0, n=4294967295) at lyxstring.C:434 #1 0x80e8a4c in Trans::process (this=0x81894c0, c=-56, k=@0x81bc910) at trans_decl.h:34 #2 0x80e98eb in TransManager::TranslateAndInsert (this=0x81bc910, c=-56, text=0x82111f0) at trans_mgr.C:281 #3 0x80ae717 in LyXFunc::Dispatch (this=0x81bc790, ac=-1, do_not_use_this_arg=0x820ca90 "È") at lyxfunc.C:2474 #4 0x80a8191 in LyXFunc::processKeyEvent (this=0x81bc790, ev=0x4008f2ec) at lyxfunc.C:303 #5 0x8060885 in LyXView::KeyPressMask_raw_callback (fl=0x81b26f0, xev=0x4008f2ec) at LyXView.C:351 #6 0x80608a0 in C_LyXView_KeyPressMask_raw_callback (fl=0x81b26f0, xev=0x4008f2ec) at LyXView.C:358 #7 0x400483bf in pre_emptive_consumed () from /usr/X11R6/lib/libforms.so.0.88 #8 0x40047758 in do_interaction_step () from /usr/X11R6/lib/libforms.so.0.88 #9 0x40047ee2 in fl_treat_interaction_events () from /usr/X11R6/lib/libforms.so.0.88 #10 0x40047f1c in fl_check_forms () from /usr/X11R6/lib/libforms.so.0.88 #11 0x809b57d in LyXGUI::runTime (this=0x8198650) at lyx_gui.C:634 #12 0x809c6e4 in LyX::LyX (this=0xb84c, argc=0xb8f0, argv=0xb934) at ../src/lyx_main.C:119 #13 0x80b8353 in main (argc=1, argv=0xb934) at ../src/main.C:43 (gdb)
LyX 1.1.3 trace log - reproducible
Hello dear Developers! After finishing one book (two editions - Croatian & English) with LyX and taking advantage to mention LyX & LaTeX as tools for producing layouts, I had a small pause. Soon, I have to start with some new writing and today I downloaded new 1.1.3 version. I just changed the strings in tex-accent.C to have capability to enter diacritic marks which are disabled by default in LyX (like r underdot), compiled the program and tried to see what's happening. I have defined dead keys in Xmodmap and I use latin-2 encoding in my documents (attached file croatian.kmap) plus sanskrit.bind (also attached) to add feature for entering sanskrit diacritic marks. Now I cannot see all of them on the screen although they appear in dvi output. Problem is with "i macron". More serious problem is crashing when trying to enter "C caron" (if I'm correct) - standard character in latin-2 encoding. The trace file is included. Sincerely, Sasa P.S. Keep up the beautiful work on LyX. It is really fantastic. Croatian specific characters # # # Local Dead Keys. The particular keysyms for dead keys were defined # using xkeycaps. # # # Bound to Mode_switch+` \bind "~S-~C-~M-dead_acute" "accent-acute" # Bound to Mode_switch+~ \bind "~S-~C-~M-dead_tilde" "accent-tilde" # Bound to Mode_switch+Shift+- \bind "~S-~C-~M-dead_macron" "accent-macron" # Bound to Mode_switch+Shift++' \bind "~S-~C-~M-dead_belowdot" "accent-underdot" # Bound to Mode_switch+* \bind "~S-~C-~M-abovedot" "accent-dot" Program received signal SIGSEGV, Segmentation fault. lyxstring::lyxstring (this=0xb3f0, x=@0x0, pos=0, n=4294967295) at lyxstring.C:434 434 Assert(pos <= x.rep->sz); // STD! (gdb) bt #0 lyxstring::lyxstring (this=0xb3f0, x=@0x0, pos=0, n=4294967295) at lyxstring.C:434 #1 0x80e8a4c in Trans::process (this=0x81894c0, c=-56, k=@0x81bc910) at trans_decl.h:34 #2 0x80e98eb in TransManager::TranslateAndInsert (this=0x81bc910, c=-56, text=0x82111f0) at trans_mgr.C:281 #3 0x80ae717 in LyXFunc::Dispatch (this=0x81bc790, ac=-1, do_not_use_this_arg=0x820ca90 "È") at lyxfunc.C:2474 #4 0x80a8191 in LyXFunc::processKeyEvent (this=0x81bc790, ev=0x4008f2ec) at lyxfunc.C:303 #5 0x8060885 in LyXView::KeyPressMask_raw_callback (fl=0x81b26f0, xev=0x4008f2ec) at LyXView.C:351 #6 0x80608a0 in C_LyXView_KeyPressMask_raw_callback (fl=0x81b26f0, xev=0x4008f2ec) at LyXView.C:358 #7 0x400483bf in pre_emptive_consumed () from /usr/X11R6/lib/libforms.so.0.88 #8 0x40047758 in do_interaction_step () from /usr/X11R6/lib/libforms.so.0.88 #9 0x40047ee2 in fl_treat_interaction_events () from /usr/X11R6/lib/libforms.so.0.88 #10 0x40047f1c in fl_check_forms () from /usr/X11R6/lib/libforms.so.0.88 #11 0x809b57d in LyXGUI::runTime (this=0x8198650) at lyx_gui.C:634 #12 0x809c6e4 in LyX::LyX (this=0xb84c, argc=0xb8f0, argv=0xb934) at ../src/lyx_main.C:119 #13 0x80b8353 in main (argc=1, argv=0xb934) at ../src/main.C:43 (gdb)