[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference pamsrc::objectbroker

Title:ObjectBroker - BEA Systems' CORBA
Notice:See note 3 for kits; note 5 for training; note 1134 for releases
Moderator:TLE::PARODId
Created:Tue Jul 11 1989
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1413
Total number of notes:6391

1359.0. "why always this damed CTRL/J?s" by EMNTAL::STADELMANN (Sepp @ZUO 760-2609) Mon Feb 03 1997 04:51

    When ever I install a new kit and then try to edit a file delivered by
    i.e. OBB 2.7-11 CLD for an NT system I see this funny CTRL/J
    characters. I know UNIX likes them, but I certainly dont, one reaso I
    am working with NT, also I have installed an NT kit not a UNIX kit.
    
    This CTRL/J's are very UNIX like ....
    
    This has nothing to do with Windows NT or Windows 95 or Windows.
    
    Why is it not possible to provide all text and source CTRL/J less? Such
    as one would expect when editing it using an editor like NOTEPAD or
    SEDT, All this editors do not like this CTRL/J at every end of a line.
    
    Can you not provide like that ?
    
    What editor do you recommend to use on PC Platforms to NOT SEE THIS
    DAMED CTRL/J's.
    
    What easy procedure do you recommend to remove CTRL/J from each line
    end. Maybe make it a part of an installation procedure.
    
    Sepp,
T.RTitleUserPersonal
Name
DateLines
1359.1VAXCPU::michaudJeff Michaud - ObjectBrokerMon Feb 03 1997 11:0523
	I'm not sure what you are saying.  There is a known problem
	(and an outstanding QAR) that most of the includes files
	and some other files on all the Windows platforms (NT,
	Win95, and Win3.1) have all lines only terminated with
	a newline character (ala control-J), and not a carriage
	return newline pair, and that the NOTEPAD application
	doesn't handle carriage return-less text files.

	Is this what you are saying?  If so, the answer is that
	the reason the files are like that in the 1st place is
	a side effect of the source control system and the processes
	used to get the sources to the build systems.  The reason
	some files (like the online release notes) have the Windows
	standard line termination is because the existing kit creation
	process specifically changes the line termination for a
	select few ascii files.  It would be not be practical given the
	existing tools (ie. it doesn't scale well) to do it for all
	the ascii files that are shipped.  Early last year I did
	design and prototype a new tool that would create the NT
	kits with one of it's features being that it would make sure
	all ascii files placed on the kit have the correct line
	termination for Windows.  That new tool however is not
	yet in use.
1359.2please fix it before you kit it!EMNTAL::STADELMANNSepp @ZUO 760-2609Tue Feb 04 1997 03:3636
    Jeff,
    
    Thank's for having a look on it. In fact your reply tells me that
    ObjectBroker Engineering is very aware of the situation but does not
    have it under control. Unfortunately since quite some time the
    situation did not change on this front.
    
    Imagin you buy a a newcomer customer a product for 2500 buks for NT and
    then you take the NOTEPAD editor in atempt to view few exampe files
    like .IDL, Makefiles, all the example code. If your lucky you will see
    nicely formatted files. But if your unlucky all you see are tons of
    unreadable wrapped rendered files due to this CTRL/J type wrapping.
    
    No good first impression; i.e. notepad obbquick.cxx, notepad
    obbquick.c, notepad any.cxx, notepad boa.cxx .... and so on for all the
    ./include files,
    
    OK: the negative effect is seen with CTRL/J and NOTEPAD or SEDT
    using EDIT is OK even the file has CTRL/J's in it.
    
    Workarround: I send the file using CuteFTP in ASCII mode to a UNIX
    machine and then back in ASCII mode, overwriting the existing file and
    all the CTRL/J's are gone. Then I have what I want, SEDT, NOTEPAD and
    EDIT all show well formatted files.
    
    I understand your claim for a common source code system; this is a
    very leagl technical issue, a must. 
    
    But I hope you understand the sales point as well, the impression a
    customer has up on this product when he just bougth his kit for 2500 buks
    and then sees badly formatted files.
    
    The solution is what your aiming at but did not reach so far.  Please
    fix it (remove this CTRL/J's by CR/LF) before you kit it. 
    
    Sepp;
1359.3Use WordpadLEMAN::DONALDSONFroggisattva! Froggisattva!Mon Feb 10 1997 05:028
Wordpad has no problem with the files. In addition it copes
with much bigger files. I always associate IDL/IML/MML/COL
with Wordpad these days.

Wishlist: add an edit association to the right-button click
of ObjectBroker files which points to Wordpad.

John D.
1359.4EMNTAL::STADELMANNSepp @ZUO 760-2609Thu Feb 13 1997 04:427
    John
    
    That is the solution for the damed CTRL/J problem.I just wonder why I
    (speaking also for customers) have to setup this myself if I pay for an
    NT developers kit some 2'500 buks.
    
    Sepp
1359.5QAR numbers for referenceVAXCPU::michaudJeff Michaud - ObjectBrokerThu Mar 06 1997 14:2510
> There is a known problem
> (and an outstanding QAR) that most of the includes files
> and some other files on all the Windows platforms (NT,
> Win95, and Win3.1) have all lines only terminated with
> a newline character (ala control-J), and not a carriage
> return newline pair, ....

	For reference, since I was just asked, the outstanding QAR
	numbers are 2848 and 2465.  I don't know if they got transfered
	to the PTR system or not.
1359.6REQUE::BOWERPeter Bower, ObjectBrokerFri Mar 07 1997 06:332
    This is PTR 16-3-248