Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9295

Remove Unicode BOM (U+FEFF) from text files in codebase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 7.0
    • 6.2, 7.0
    • scripts and tools
    • None

    Description

      When starting Solr built from the master branch on Windows, this is what you see:

      C:\Users\elyograg\git\lucene-solr\solr>bin\solr start
      
      C:\Users\elyograg\git\lucene-solr\solr>@REM
      '@REM' is not recognized as an internal or external command,
      operable program or batch file.
      

      The three extra characters, found at the very beginning of the solr.cmd script, are a Unicode BOM, and are invisible to vim, notepad, and notepad++.

      The problem does not exist in 6.1.0, but IS present in branch_6x and master.

      Using grep to find this character in the entire codebase, I found one other relevant file with a BOM. All others were binary (images, jars, git pack files, etc):

      ./solr/webapp/web/js/lib/jquery.blockUI.js

      Attachments

        Activity

          People

            Unassigned Unassigned
            elyograg Shawn Heisey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: