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 20 years ago

Closed 19 years ago

Last modified 18 years ago

#298 closed defect (fixed)

Error en la inserción de ficheros bst

Reported by: fdelamuela Owned by: Víctor de Buen Remiro
Priority: normal Milestone:
Component: SetAlgebra Version: head
Severity: normal Keywords:
Cc:

Description

Cuando se lee una bst, los ";" determinan los campos. Pero si existe

algún ";" encerrado entre dobles comillas no ve que es texto y se piensa
que hay otro campo.
Ejemplo de bst:

TransformacionesSt; Type; code; Name; ExpresionXLS;
;"T";"LPrecio01";"LPrecio01";"A;B";

Pues bien, en el último campo (ExpresionXLS es un Text) la cadena de texto
"A;B" no la reconoce como tal, sino que llega al ; que hay entre A y B,
se cree que es un campo y da un error de tener un
" abierto y no cerrado (el " anterior al carácter A).

Change History (4)

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.
Now you can use quoted strings into BST fields, even including separator
characters into a quoted field.
Also you can scape quotes with \" to include quote characters " into a field, and
to include scape \ characters.

Thanks to report it

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

Here an example that you can do now with scaped-quoted fields

TransformacionesSt; Type; code; Name; ExpresionXLS;

;"T";"LPrecio01";"LPrecio";"A,B";
;"T";"LPrecio01";"LPrecio";"A;B";
;"T";"LP\"hello
bye\"";"LPrecio";"A;B";

token

"LP\"hello
bye\""

will be readed as string

LP"hello\bye"

comment:4 Changed 18 years ago by Víctor de Buen Remiro

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