public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: shraavya malli <shraavya.malli@gmail.com>
To: edk2-devel@lists.01.org
Subject: UDK2017 and TCL - Decimal numbers being treated as Octals
Date: Wed, 5 Sep 2018 13:35:37 +0530	[thread overview]
Message-ID: <CAKm_c6CpjNGYQzOwdNnwf4dhQs=Tu+YPwA+WAgC-8+nMj0hPFw@mail.gmail.com> (raw)

Hi all,

I have an EFI Shell tool which uses EDK 1.05 and TCL 8.3 sources. This tool
accepts user commands to display PCI-E adapter information and to upgrade
firmware on it. I recently ported it to UDK2017. I am using VS2012x86
toolchain to build the tool.

When I run the binary from EFI Shell, TCL reports errors such as these.

can't use invalid octal number as operand of "||"
syntax error in expression "(1<<0)"
syntax error in expression "(0x1<<0)"

TCL seems to be treating decimal zeroes as octal numbers. For testing, I
replaced the zeroes in the TCL expressions with 0x0 and I was able to get
rid of few of the syntax errors. This will not work for macros and
expression which are resolved to 0 during runtime.

Since this issue is not being seen with EDK 1.05 code with the same TCL
version, I am wondering if there is any flag I am missing out. Any clues on
such a flag or even suggestions on whether this needs to be debugged from
UEFI side or TCL side is highly appreciated.

Thanks,
Shraavya


                 reply	other threads:[~2018-09-05  8:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKm_c6CpjNGYQzOwdNnwf4dhQs=Tu+YPwA+WAgC-8+nMj0hPFw@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox