I am trying to migrate structured documents (i.e. documents that are mostly some metadata and one big table) to a database. When I try to move tabular data from Word to Excel, my main point of pain is handling CRLFs within a cell in Word. Any solution for this?
Now, since I will be transferring from Word to Access:
What will be the de...
I'd be happy with ZipInputStream taking indecent liberties with the line endings that are stored in a file if it would at least get them right for the platform I'm storing the file on. Unfortunately, I pull a text file (.txt, .cpp. .etc.) out of a zip and the \n (0x0A) gets replaced with a \r\n (0x0d0a) and, as you can imagine, this is ...
I wrote a C# program to read an Excel .xls/.xlsx file and output to CSV and Unicode text. I wrote a separate program to remove blank records. This is accomplished by reading each line with StreamReader.ReadLine(), and then going character by character through the string and not writing the line to output if it contains all commas (for th...
How would you normalize all new-line sequences in a string to one type?
I'm looking to make them all CRLF for the purpose of email (MIME documents). Ideally this would be wrapped in a static method, executing very quickly, and not using regular expressions (since the variances of line breaks, carriage returns, etc. are limited). Perha...
How do I specify the CRLF encode/decode option in mercurial.ini in Windows?
The documentation gives the following options:
[extensions]
win32text =
[decode]
** = cleverdecode:
[encode]
** = cleverencode:
for all files and,
[extensions]
win32text =
[decode]
**.txt = cleverdecode:
[encode]
**.txt= cleverencode:
for one kind of files...
I am compiling a YACC file using Cygwin shell on a PC. I am getting an 'unknown character \15'. The weird thing is that a co-worker on another machine can compile the exact same file using the same shell with no warnings or errors. Is there some kind of flag I need to set in my shell or with the compiler? We are using nmake and a Vis...
Hi,
I'm keeping several texts in an App_GlobalResources .resx file.
The texts have to be multiline and I need to have them contain line feeds. However, when I read the contents, all line feeds are gone (\r\n is printed, not as CRLF 10 13 control character).
I know that I could work around this by re-replacing \r\n (or anything else fo...
We are working with a 3rd party PHP engine that gets regular updates. The releases are kept on a separate branch in git, and our fork is the master branch.
This way we'll be able to apply patches to our fork from the new releases of the engine.
My problem is, after many commits to our branch, I realized that the initial import of the e...
I have tried all of this:
Changing coding system:
(prefer-coding-system 'iso-latin-1-unix)
Ensuring no translation:
(add-untranslated-filesystem "C:")
(add-untranslated-filesystem "D:")
Setting multibyte characters to nil:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could ...
I have a subversion repository hosted on Linux but only ever accessed via windows clients as it's for the source of a large Windows application.
It would be awesome if I could work on this repository using git-svn (provided by msysgit).
I'm having a heck of a time trying to get the repository to not get itself in a jam over the windows...
I have a RichTextBox and I want to save the text to a file. Each line of the RichTextBox are ended with CR+LF ("\n\r") but when i save it to a file, the lines only contains the LF char at the end.
If I copy the content to the clipboard instead of a file all goes right (The content of the clipboar has CR+LF at the end of each line, I ca...
I just ran a
git add -A
on my first git project.
I got back about a thousand responses:
"warning: LF will be replaced by CRLF"
as it went through each file (Ruby files, some are gems).
I deleted my .git directory and tried to disable this default setting by typing this command:
git config core.autocrlf false
Then I tried ...
I'm trying to fix a problem with CRLF on Windows.
How do I see what the value of the configuration setting core.autocrlf is set to on my system?
...
If you set something like this on Windows:
git config --global core.autocrlf false
Where is this global setting getting written to?
...
in gvim on windows if I have text with CRLF eol then the text will display ^M at the end of each line.
How do I 'hide' that special char from display?
the :set nolist command """ does not dismiss it.
I am stumped.
UPDATE
I did :set fileformats=unix,dos as a list but it didn't work at first. I closed the file and reopened it agai...
When you run something through popen in Python, the results come in from the buffer with the CR-LF decimal value of a carriage return (13) at the end of each line. How do you remove this from a Python string?
...
Hi,
I have an export functionality that reads data from DB (entire records) and writes them in a .txt file, one record on a row each field being separated by ';'. the problem i am facing is that some fields contain CRLFs in it and when i write them to the file it goes to the next line thus destroying the structure of the file.
The only...
So I think it may have to do with textmate, but we work in a small team and are having some issues with full-file conflicts of nearly identical files in git because each line of one branch has a ^M appended to it.
I would just google it, but since google searches strip special characters like ^ I am coming to you guys for help on this.
...
I use Eclipse on Windows to edit files on a remotely mounted Linux SMB share.
Coupled with Samba's stubborn opposition to on-the-fly mapping, Eclipse's insistence on CR/LF creates a real headache with Perl scripts.
Any workarounds?
...
Hello all,
I'm fighting against the tool and loosing. I want my project for every text file and every developer to be UTF-8 and CRLF.
1) how do I configure git for that ?
2) how do I share this git setting with all developers so that nobody can forget to configure that ?
I read a bit about core.autocrlf and safecrlf, but I don't see ...