Issue Details (XML | Word | Printable)

Key: MDL-10764
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Koen Roggemans
Reporter: Koen Roggemans
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-10637

Lang files contain quite a few BOM markers

Created: 09/Aug/07 06:18 AM   Updated: 10/Aug/07 07:55 PM
Return to search
Component/s: Languages
Affects Version/s: 1.9
Fix Version/s: 1.9

Participants: Eloy Lafuente (stronk7) and Koen Roggemans
Security Level: None
Resolved date: 10/Aug/07
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
Using Eloy's grep trick on the lang files revealed a lot of BOM markers. I assume they don't cause any problems in html files, but I think that the php files can be a problem.

For absolute vi dummies like me, the solution looks like
grep -rl $'\xEF\xBB\xBF' * //Search folder and subfolders for BOM markers
vim filename //opens file in vim
:set nobomb //removes the BOM
:w //saves the file with the same name
:q //quit vim

(credits to Eloy and http://www.tuxfiles.org/linuxhelp/vimcheat.html)

to perform on a *nix or a mac.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Koen Roggemans made changes - 09/Aug/07 06:24 AM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Koen Roggemans made changes - 10/Aug/07 07:55 PM
Resolution Fixed [ 1 ]
Fix Version/s 1.9 [ 10190 ]
Status In Progress [ 3 ] Resolved [ 5 ]