Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1455 "expr" command does not support locale..

obsolete: 8.3
closed-invalid
nobody
5
2001-04-05
2001-03-23
Anonymous
No

"expr" command does not support locale where float
digit uses comma instead of point
example: 3,23 instead of 3.23

If I use russian locale in my program linked with tcl
library, I have errors in expr command, while
executing tcl scripts.

for example:
[expr 21e-1]
returns
2,1.0

one more example:
[expr 2.1+2.1]
and
[expr 2,1+2,1]
both returns error

It is not good :)

I use RedHat Linux 7.0 with shipped Tcl/Tk 8.3

Andrey Paskal

Discussion

  • Jeffrey Hobbs
    Jeffrey Hobbs
    2001-03-28

    Logged In: YES
    user_id=72656

    It is by very intentional design that Tcl requires all math
    operations operate in the C locale, and is likely to never
    change because it means tcl scripts wouldn't be portable
    from system to system. You have to be sure that this is
    propagated in libraries that talk with Tcl.

     
  • Jeffrey Hobbs
    Jeffrey Hobbs
    2001-03-28

    • summary: "expr" command does not support locale.. --> "expr" command does not support locale..
    • status: open --> closed
     
  • Don Porter
    Don Porter
    2001-03-28

    • summary: "expr" command does not support locale.. --> "expr" command does not support locale..
    • status: closed --> closed-invalid
     
  • Don Porter
    Don Porter
    2001-04-05

    • labels: 104244 --> 16. Commands A-H
    • summary: "expr" command does not support locale.. --> "expr" command does not support locale..