Invalid directory separator used for Mac OS X

Bug #1165372 reported by E. Vriezekolk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Excel2LaTeX
Triaged
Medium
Unassigned

Bug Description

In class module CModel, property IModel_AbsoluteFileName, Windows-specific notations are used:

Public Property Get IModel_AbsoluteFileName() As String
    If sFileName Like "?:\*" Or sFileName Like "\\*\*" Then
        IModel_AbsoluteFileName = sFileName
    Else
        IModel_AbsoluteFileName = Printf("%1\%2", WorksheetDir, sFileName)
    End If
End Property

Absolute filenames probably start with a forward slash, instead of one of the two notations checked for (I have not checked this).
Worse, in the Else-part the backslash will cause the file to be generated in the parent directory, not in the worksheet directory.
For Mac's, a kludge is to replace '\' by ':'. It is probably better to use a system function for the default directory separator character, but since I am no VBA expert I cannot suggest a proper fix myself.

With current code, a file "directory\tablename.tex" is created (with a backslash in the filename) in the parent directory of the worksheet.
Instead, a file called "tablename.tex" should be created in the same directory as the worksheet.

Office for Mac version 14.3.2, Mac OS X 10.8.3.

Revision history for this message
Kirill Müller (krlmlr) wrote :

This is unfortunate, and will be addressed in a future release. I am resolving other incompatibilities using the "preprocessor" of VBA, and so I will do in this case. Thanks for reporting.

Changed in excel2latex:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.