Parameswar
Parameswar

Reputation: 2079

Error "UTF-8 Unicode C++ program text, with very long lines" and "ASCII English text, with very long lines"

I have soome files which are commmited from windows to svn. When these files are found by a program running in Linux, it shows the error for a file

UTF-8 Unicode C++ program text, with very long lines

and

and ASCII English text, with very long lines

for another file.

There are no spaces at the end of the file. I am not sure why it tells "very long lines". All i need is to convert the files to either ASCII English or UTF-8 in linux. Any help is appreciated.

Upvotes: 1

Views: 7326

Answers (1)

that other guy
that other guy

Reputation: 123600

These are not error messages in themselves, but output from the identification utility file. It's not good at recognizing different programming languages, and might think a C++ file is English or Java.

"Very long lines" refers to the fact that the files have lines over 300 characters long.

Both files are already UTF-8 (ASCII is a subset of UTF-8), and therefore don't need conversion (but you might prefer translating the line endings from \r\n to \n with dos2unix or tr -d '\r'.

Upvotes: 3

Related Questions