Version: 1.5.2a (using KDE KDE 3.1.2) Installed from: RedHat RPMs Compiler: gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113) OS: Linux compilation fails with: managetemplatesdialog.cpp: In method `ManageTemplatesDialog::ManageTemplatesDialog (QFileInfo, const QString &, QWidget *, const char *)': managetemplatesdialog.cpp:36: unknown escape sequence `\.' I'll be soon attach 2 possible patches.
Created attachment 1670 [details] simplest version - m_sourceTemplate.name=src.baseName().replace(QRegExp("\.tex"),""); + m_sourceTemplate.name=src.baseName().replace(QRegExp("\\.tex"),"");
Created attachment 1671 [details] restoring dep on qt3.1 - m_sourceTemplate.name=src.baseName().replace(QRegExp("\.tex"),""); + //m_sourceTemplate.name=src.baseName().replace(QRegExp("\.tex"),""); + // Req'ing Qt3.1 is ok with me (-: -- Rex + m_sourceTemplate.name=src.baseName().replace(".tex","");
done, thanks
As these patches help compilation, now I'm not so sure of their correctness. Now the build completes, but any(*) operation on a tex file fails, with the following in the log/messages window: Launched: cd '/homes/rdieter' && latex Process failed (*) any operation being: latex, kdvi, pdflatex, etc...
The first patch is the correct one. The second patch uses a regexp of ".tex", which uses a wildcard for the first letter, not a dot. And the old code is indeed wrong. It needs patching.
So are you saying that the patch here ought to be independant of my second "Process failed" problem? Should a submit a anoter report for the latter issue?
No, I'm not sure since I'm not familiar with the source code in question. I don't know what exactly gcc generates when it finds an invalid escape sequence. And although "\.tex" and ".tex" are wrong, maybe the right sequence triggers another bug further on.
Subject: Re: compile fails: unknown escape sequence `\.' On Thursday 29 May 2003 20:52, you wrote: > ------- You are receiving this mail because: ------- > You are the assignee for the bug, or are watching the assignee. > > http://bugs.kde.org/show_bug.cgi?id=59110 > > > > > ------- Additional Comments From rdieter@math.unl.edu 2003-05-29 20:52 > ------- So are you saying that the patch here ought to be independant of my > second "Process failed" problem? Should a submit a anoter report for the > latter issue? Yes it is independent. I'm saying that you have an old kilerc, delete it and everything should be fine, it is not a bug AFAIK. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+10XNan1DnFM0YskRAgZ8AJ4pLsGxCyDq0GwUa/HBkW3FlxFMzgCgmdVy R02sSuSTQ/0pnEFP1v9+0LQ= =qDRf -----END PGP SIGNATURE-----
Recompiled from scratch, it works for me guys.
Don't be so hasty about closing this one. What compiler are you using? It may be something specific to gcc-2.96.
Subject: Re: compile fails: unknown escape sequence `\.' > ------- Additional Comments From rdieter@math.unl.edu 2003-06-03 20:40 > ------- Don't be so hasty about closing this one. What compiler are you > using? It may be something specific to gcc-2.96. Well, then send me some more info, I mean error messages. As far as I know there was a mistake in the source, I removed the escape sequence since there was no need for it. That should solve the problem for all compilers.
OK, you hadn't mentioned that you had actually modified the source, just that you had rebuilt it from scratch and marked it WORKSFORME. I'm satisfied.
Subject: Re: compile fails: unknown escape sequence `\.' > ------- You are receiving this mail because: ------- > You are the assignee for the bug, or are watching the assignee. > ------- Additional Comments From rdieter@math.unl.edu 2003-06-04 14:18 > ------- OK, you hadn't mentioned that you had actually modified the > source, just that you had rebuilt it from scratch and marked it > WORKSFORME. I'm satisfied. Glad to hear that! Jeroen