Modify

#1995 closed Bug (Wont Fix)

Different results on x86 and x64

Reported by: UEZ Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.1 Severity: None
Keywords: Cc:

Description

When I run these lines

#AutoIt3Wrapper_UseX64=n
MsgBox(0,"", StringMid(StringFormat("%-20.*s", "AutoIT.de"),1 , 20))

the result is different to this

#AutoIt3Wrapper_UseX64=y
MsgBox(0,"", StringMid(StringFormat("%-20.*s", "AutoIT.de"),1 , 20))

Should the result not the same?

Br,
UEZ

Attachments (0)

Change History (3)

comment:1 by J-Paul Mesnage, on Nov 7, 2011 at 5:08:53 PM

In fact AutoIt does really support .* precision.
Your example is wrong as an extra parameter defining the precision will be needed before the string to defined the precision

MsgBox(0,"", StringMid(StringFormat("%-20.*s", 10, "AutoIT.de"),1 , 20))

but as I say Autoit will not support this format
So fix must be done to accept or reject such precision definition

comment:2 by trancexx, on Jun 23, 2012 at 11:09:39 AM

Nothing needs fixed. This is not a bug.
The user has invalid syntax of a conversion specification therefore triggering undefined behavior.
All we should do is document that bad syntax causes undefined behavior. When that's done this ticked can be closed.

Last edited on Jun 23, 2012 at 11:10:07 AM by trancexx (previous) (diff)

comment:3 by trancexx, on Jun 23, 2012 at 9:14:03 PM

Resolution: Wont Fix
Status: newclosed

Addressed by revision [7088].

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.