This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 117873 - Wrong newline char in Windows C source files
Summary: Wrong newline char in Windows C source files
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-05 06:01 UTC by chuckbing
Modified: 2008-01-21 14:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chuckbing 2007-10-05 06:01:28 UTC
C source files are not saved using Window newlines (0x0d 0x0a). Unix newline (0x0a) is used. Default platform in C/C++ 
Options is set to Windows.
Comment 1 Egor Ushakov 2008-01-18 17:30:10 UTC
This was done intentionally: all new c/c++ files created from IDE forced to have '\n' line separator.
Comment 2 Vladimir Voskresensky 2008-01-21 10:25:22 UTC
we have checked it once more and decided to leave forcing '\n' only for shell files
Comment 3 Vladimir Voskresensky 2008-01-21 11:07:14 UTC
- do not force '\n' for C/C++ files
Need to be checked on Windows

cvs log:
Checking in CCKit.java;
/shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/editor/cplusplus/CCKit.java,v  <--  CCKit.java
new revision: 1.22; previous revision: 1.21
done
Comment 4 Vladimir Voskresensky 2008-01-21 14:28:31 UTC
fixed
new lines are kept in existing files and system dependent for new files