Bug 59110 - compile fails: unknown escape sequence `\.'
Summary: compile fails: unknown escape sequence `\.'
Status: RESOLVED WORKSFORME
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jeroen Wijnhout
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-29 16:13 UTC by Rex Dieter
Modified: 2003-06-04 14:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
simplest version (783 bytes, patch)
2003-05-29 16:14 UTC, Rex Dieter
Details
restoring dep on qt3.1 (887 bytes, patch)
2003-05-29 16:16 UTC, Rex Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rex Dieter 2003-05-29 16:13:10 UTC
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.
Comment 1 Rex Dieter 2003-05-29 16:14:31 UTC
Created attachment 1670 [details]
simplest version

-   m_sourceTemplate.name=src.baseName().replace(QRegExp("\.tex"),"");
+   m_sourceTemplate.name=src.baseName().replace(QRegExp("\\.tex"),"");
Comment 2 Rex Dieter 2003-05-29 16:16:00 UTC
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","");
Comment 3 Jeroen Wijnhout 2003-05-29 16:23:38 UTC
done, thanks
Comment 4 Rex Dieter 2003-05-29 17:45:37 UTC
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... 
Comment 5 Thiago Macieira 2003-05-29 20:39:18 UTC
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. 
Comment 6 Rex Dieter 2003-05-29 20:52:09 UTC
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? 
Comment 7 Thiago Macieira 2003-05-29 23:14:14 UTC
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. 
 
Comment 8 Jeroen Wijnhout 2003-05-30 13:50:39 UTC
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-----

Comment 9 Jeroen Wijnhout 2003-06-03 20:31:53 UTC
Recompiled from scratch, it works for me guys.
Comment 10 Rex Dieter 2003-06-03 20:40:17 UTC
Don't be so hasty about closing this one.  What compiler are you using?  It may be something 
specific to gcc-2.96. 
Comment 11 Jeroen Wijnhout 2003-06-04 09:18:59 UTC
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.


Comment 12 Rex Dieter 2003-06-04 14:18:14 UTC
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. 
Comment 13 Jeroen Wijnhout 2003-06-04 16:32:02 UTC
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