473,379 Members | 1,260 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Rogue CR/LF in Myfile.Designer.cs code

I'm collaborating on a project with a colleague, sharing files through
SourceSafe.

So, I run GetLatestVersion and suddenly I have 264 build errors - all
"Unexpected character"

The file in question is Myfile.Designer.cs and contains a number of
rows looking like this:

/// <summary਍ഀ
/// Clean up any resources being used.਍ഀ
/// </summary>਍ഀ
/// <param name="disposing">true if managed resources should be
disposed; otherwise, false.</param>਍ഀ
protected override void Dispose(bool disposing)਍ഀ
{਍ഀ
if (disposing && (components != null))਍ഀ
{਍ഀ
components.Dispose();਍ഀ
}਍ഀ
base.Dispose(disposing);਍ഀ
}਍ഀ

This displays correctly in GoogleGroups interface - I hope it displays
correctly in news readers (I have to use GG because our sysadmin won't
(or can't be bothered to) allow newsgroups through Exchange. If you
can't see it, every line is terminated with the characters CR (0D) and
LF (0A).

This does not happen on his machine - the code displays correctly.
I've checked through SourceSafe and the files are identical. We can't
find anything on our respective machines' setup that is different -
both running VS2005 SP1.

Thoughts?

Edward

Jul 18 '07 #1
1 1963
On Wed, 18 Jul 2007 01:07:43 -0700, <te********@hotmail.comwrote:
[...]
This displays correctly in GoogleGroups interface - I hope it displays
correctly in news readers (I have to use GG because our sysadmin won't
(or can't be bothered to) allow newsgroups through Exchange. If you
can't see it, every line is terminated with the characters CR (0D) and
LF (0A).

This does not happen on his machine - the code displays correctly.
I've checked through SourceSafe and the files are identical. We can't
find anything on our respective machines' setup that is different -
both running VS2005 SP1.
I'm not convinced those are CR and LF characters at the ends of your
lines. After all, CR and LF are normal line termination characters, and
yet the characters you posted show up as placeholder boxes in my
newsreader. When I look at the actual message text, they are shown as
"=E0=A8=8D=E0=B4=80". What that is, I'm not sure, but it's not a CR/LF
pair.

So my first suggestion is that the characters aren't CR and LF
characters. Why would extra CR/LF pairs cause any trouble anyway? This
is normal behavior on Windows computers in the first place, to have those
characters at the end of each line.

If you are absolutely sure that you do in fact have CR and LF characters
that are causing problems, then IMHO, if you can figure out why having
CR/LF causes trouble, that will be the answer to your problem. The fact
that the files are identical on both computers isn't all that surprising,
since you haven't described anything that would be unusual about the file
anyway. What _is_ unusual is that your Visual Studio is somehow confused
by normal line terminators.

Why that would happen, I don't know. But I'd say that the first place to
look is at your Visual Studio configuration and installation.

Assuming, of course, that those are in fact CR and LF characters. If you
do actually have "rogue CR/LF" in your code, then maybe you can explain
why your post included those odd-ball characters instead.

Pete
Jul 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sharron | last post by:
This problem has me completely stumped...everyone on the net seems to have this problem but I don't understand what they are talking about. I know my code is correct it compiles fine but when I try...
1
by: Thomas Lenarz | last post by:
Hello, we have got C++-programs (older SUN-Compiler) using the Rogue-Wave-Class-Library and consider to port the application to AIX 5.2 (GNU gcc/g++) The only drawback we could find ist the...
5
by: Old Wolf | last post by:
The following code causes a deallocation of a random amount of bytes, with the Rogue Wave STL supplied with Borland C++ 5.5.1 : #include <vector> int main() { std::vector<char> v, w(1); v =...
3
by: comp.lang.php | last post by:
Using Linux/PHP 4.3.2 CLI: $fileID = fopen('myfile.txt', 'r'); // WORKS JUST FINE Using Linux/PHP 4.3.8 CLI: $fileID = fopen('myfile.txt'); // THROWS WARNING 'no such file or directory...
8
by: Jim S. | last post by:
hi, i have this $sql = "update products set smallpicname = $myfile where id=37"; mysql_query($sql); i want the value of $myfile to be in the $sql , but it is not doing it, so what am i doing...
3
by: Brian Kitt | last post by:
I've got the same problem, on 2 different servers. One running Microsoft Exchange, the other running a 3rd party mail system. It's highly unlikely that this problem is in the mail server. What...
1
by: deko | last post by:
If I want to use file(myfile.txt) and myfile.txt gets written to (flocked) frequently, what is the best approach? Should I try to get a lock on myfile.txt before using file(myfile.txt)? What...
5
by: etoile | last post by:
The code is on a SUN platform. From a detailed design point of view, what is needed to eliminate Rogue Wave from the C++ code. Just scanning for RW in the code, here is a list: RWCstring...
1
by: Steven Backus | last post by:
I inherited a Solaris c++ program that uses Rogue Wave and am trying to port it to linux. It seg faults in this code: for (int size = entries() - 1; size 1; --size) { RWOrderedIterator...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.