[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [EnergyPlus_Support] CR LF line endings error





As Eplus already has the separate versions for MsDOS, Linex, and Mac, there is no need for the IDFeditor in each platform to cross generate files.
===================
For the example of "CR LF (\r\n dos), LF (\n UNIX) and CR (\r Mac)" in the users comment, these are not really for different OS's.   \n\r is the formatting character in the compilier.  The line end character entered from the keyboard is translate in all three forms, depends on what you are using for the file format. 
 
\r\n may not be the preferred sequence or order for DOS, printer, or typewriter.  .
 
The line end character in UNIX is actually \0 or Hx00.  The conversion program is very simple.
==============================
If the EPlus IDFeditor on one platform  is enabled to output format conversion for different OS / platforms, there will be more confusions. 
 
If a user can  run the IDF of different platforms from the same directory on the same dual boot computer, then there may be justification for the automatic conversion.
 
The conversion program is very simple when written in DOS.  It is less than ten lines of c programming codes, not including the IDE house keeping lines.  All you need to do is to write the code, complie and link  it to an .exe file, and add the two conversion .exe files at the begining and the end of a batch file, which calls the stardard platform EPlus interface file..
 
 
 Dr. Li  

 

To: EnergyPlus_Support@xxxxxxxxxxxxxxx
CC: wouter.beck@xxxxxx
From: linda@xxxxxxxxxxxxxx
Date: Sat, 10 Sep 2011 05:39:22 -0600
Subject: Re: [EnergyPlus_Support] CR LF line endings error

 
The EnergyPlus engine has no problem with that -- it's been adapted for many versions to accept any of those line endings on both IDF files and EPW files.

The IDF Editor has not.  It can recognize that there are Unix line endings but cannot go ahead and read the file.

At 02:12 AM 9/10/2011, Wouter Beck wrote:


Dear Development Team,

Why not change the E+ lexical analyzer in a next release such that it accepts all of: CR LF (\r\n dos), LF (\n UNIX) and CR (\r Mac)?

I often run into this problem when switching between windows and Linux and know how to fix it.
If E+ were my own code, I would simply adapt the input routine as suggested above to deal with the inconvenience.




__._,_.___


Primary EnergyPlus support is found at:
http://energyplus.helpserve.com or send a message to energyplus-support@xxxxxxxx

The primary EnergyPlus web site is found at:
http://www.energyplus.gov

The group web site is:
http://groups.yahoo.com/group/EnergyPlus_Support/

Attachments are currently allowed but be mindful that not everyone has a high speed connection.  Limit attachments to small files.

EnergyPlus Documentation is searchable.  Open EPlusMainMenu.pdf under the Documentation link and press the "search" button.




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___