Book a Demo

Author Topic: Windows file names in templates misinterpreted  (Read 5378 times)

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Windows file names in templates misinterpreted
« on: November 28, 2009, 01:25:23 am »
Filed a new bug:

=================
A Windows like file name string which is defined in a template is always translated into something with a control character.
Eg.: "c:\temp\test.sql" is translated into "c:<tab>emp\<tab>est.sql"

Create a code generation template, define a variable $filename with the value "c:\temp\test.sql", assign it to a data field and start code generation.
In the log file the variable is transformed into a variable with tabs instead of \t characters.
============

Oliver

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Windows file names in templates misinterpreted
« Reply #1 on: November 28, 2009, 09:51:35 am »
Hi Oliver,

The temporary work around (which may become permanent) should be to 'escape' the slashes.  Ea is interpreting the \t as the <tab> specifier.

Changing to c:\\temp should fix it...

HTH,
Paolo
P.S. Sorry if "teaching grandmother to suck eggs".  ;)
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Windows file names in templates misinterpreted
« Reply #2 on: December 01, 2009, 12:07:48 am »
Quote
Changing to c:\\temp should fix it...

Of course I tried this, too. Unfortunately it does not work at all  :o

Thanks for your input anyway.

Oliver

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Windows file names in templates misinterpreted
« Reply #3 on: December 01, 2009, 12:40:59 am »
Quote
Quote
Changing to c:\\temp should fix it...

Of course I tried this, too. Unfortunately it does not work at all  :o

Thanks for your input anyway.

Oliver
I guessed you would have.

I suppose this make EA inconsistently incorrect in this case...  ;)

(since \t is interpreted as <tab> but \\ in not interpreted as "\")

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Windows file names in templates misinterpreted
« Reply #4 on: December 01, 2009, 01:04:12 am »
Quote
I suppose this make EA inconsistently incorrect in this case...  ;)

(since \t is interpreted as <tab> but \\ in not interpreted as "\")


To get around the issue I found out how to use the local path dialog and this works much better anyway so consider the issue as minor :)

Oliver