Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2db53151335a77783022db24953704bbe8809681830b355adb3dad590905ab91
Ticket: 27ff4ebe1c2421149aad5f536516015a238e47aa
LDIF or LDAPx parser is not working properly: removes the desired ldif file format spaces
User & Date: usmankhalid on 2018-02-06 18:19:05
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Hello
    I used tcl8.4.14 and ActiveTcl versions 8.4.14 and 8.6.7.0 cd as well.
    Where ldapx 0.2.4 version and with ActiveTCL ldapx 1.0 version available. 
     
    I face the issue that ldapx parser is removing the spaces which we ldif format provides it. The following is the
    ldif input file
    prcoedure
    output
    desired output
    
    ####
    ## content of LDIF file
    
    dn: design data
    LOGICAL LIBRARIES: lib1
    PARAMETERS: 
    TOP ARCHITECTURE: structure
    TOP LIBRARY: lib
    TOP NAME: lib
    WORK LIBRARY: work
    
    dn: group #0
    FILES: aaaaaaa
     bbbbbbbbb
      ccccccccccc
       dddddddddddd
       
    ## Finish content of LDIF file
       
       
    ## start of tcl procedure
    
    package require ldapx 0.2.4      
    
    # create input channel
    ::ldapx::ldif create liin
    # link it to the input file
    liin channel [open "file_in.txt" r]
    
    ::ldapx::entry create input_file
    
    # each liin reads a "dn" from the input file
    # read the first one with the design data
    liin read input_file
    set output1 [input_file get {logical libraries}]
    puts stdout "this is the information contained in dn design data"
    puts stdout $output1
    
    #puts stdout "this is the information contained in the rest of dn"
    
    while {[liin read input_file] != 0} {
    set filelist [input_file get1 files]
    puts stdout [format {"%s"} $filelist]
    }
    
    return
    
    
    ## finish of tcl procedure
       
       
    # output of provided tcl file
    aaaaaaabbbbbbbbbcccccccccccdddddddddddd
    
    # expected output of provided tcl file
    aaaaaaabbbbbbbbb ccccccccccc  dddddddddddd
    
  5. foundin changed to: "8.4.14 & 8.6.7"
  6. is_private changed to: "0"
  7. login: "usmankhalid"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9483839b88c374516aab6c85bc13ba5f4f360aa6"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "usmankhalid"
  14. subsystem changed to: "69. Other"
  15. title changed to:
    LDIF or LDAPx parser is not working properly: removes the desired ldif file format spaces
    
  16. type changed to: "Bug"