Modify

Opened 8 years ago

Closed 8 years ago

#3542 closed Bug (No Bug)

IniReadSectionNames string truncated

Reported by: rootx Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.2 Severity: None
Keywords: Cc:

Description

[I:\aaa\cc\aa vv vv vv (dd).txt]
name=aa vv vv vv (dd).txt
[I:\ffff\ffff\ffff ffff ffff ffff  [ffff]\ffff\ffff.txt]
name=ffff.txt

$ini = IniReadSectionNames(@ScriptDir&"\my.ini")
_ArrayDisplay($ini)
for $x = 1 to UBound($ini)-1
ConsoleWrite($ini[$x]&@CRLF)
Next

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by Melba23

  • Resolution set to No Bug
  • Status changed from new to closed

No bug - the ini standard uses [ ] to define a section name, so having additional characters of that type is not permitted.

You will have to modify any ini file that uses additional such characters to escape them - I have showed how in this thread:
https://www.autoitscript.com/forum/topic/187778-inireadsectionnames-problem-solved/

M23

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.