{{ Project | Fix Line Ending Translation | `  curator  = Philip Kania                           |`\ `  path     = //guest/philip_kania/Tools/src          |`\ `  download = //guest/philip_kania/Tools/bin/Fix-LE.exe |`\ `  language = C#                |`\ `  license  = MIT                                 }}` ### About This Project Fix-LE.exe - Remove extraneous 0x0d (carriage return) bytes from a Microsoft "Unicode" (UTF16-LE) file. When Microsoft Windows "Unicode" files are submitted into Perforce with a file type of "text" and the files are subsequently sync-ed to your workspace (and your client workspace "LineEnd" setting is "local" or "win"), Perforce line ending translation will replace 0x0a (line feed) with 0x0d0a. This corrupts the files because the correct line ending byte sequence 0x0d00 0x0a00 becomes 0x0d00 0x0d0a 0x00. This program removes those extra 0x0d bytes. To use: `  p4 sync `\ `  p4 edit -tutf16 `\ `  fix-le `` `\ `  copy /y `` `\ `  p4 submit` To build Fix-LE.exe: `  Using Microsoft .NET Framework SDK v2.0 Commmand Prompt:`\ `     csc Fix-LE.cs [/keyfile:``]` Note: A built version is provided from the download link. ### License Copyright (c) 2009 Exemplics LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. {{ License | MIT | 2009 | Exemplics LLC }} {{ RecentChanges | //guest/philip\_kania/Tools/src/Fix-LE.cs }}