close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 21 years ago

Closed 19 years ago

Last modified 19 years ago

#207 closed defect (fixed)

The special character \ (back slash) yields an error

Reported by: imendez Owned by: Víctor de Buen Remiro
Priority: normal Milestone:
Component: Kernel Version: 1.1.2
Severity: normal Keywords:
Cc:

Description

This code:

Text t = "
\"";

returns the next error message:

ERROR: Las comillas que se abrieron en la línea 1 no se han cerrado.

Notice that there are 3 back-slashes and 3 double quotes:

  • The first double quotes open the text string.
  • The first back-slash means that the following character (the second back-slash)

is a special character.

  • The forth character (the third back-slash) menas that the fifth character (the

second double quotes) are a special character.

  • The sixth (last) character is the double quotes that close the text string.

I think the value of t must be \".

Regards.

Change History (3)

comment:1 Changed 19 years ago by Víctor de Buen Remiro

Owner: changed from danirus to Víctor de Buen Remiro

comment:2 Changed 19 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

Bug has been fixed in CVS.

A new variable BBool bs is created to store the current status 'bacslashed'. The initial status is false. When a backslash is found bs is switched, else if bs is true then is set to false.

Thanks to report it and to be patient.

comment:3 Changed 19 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000207
Note: See TracTickets for help on using tickets.