Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63619

BOM is missing on unicode file.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Jenkins 2.255

      P4Plugin for Jenkins 1.11.0

       

      When setting utf8-bom in charset, files with unicode filetype (see unicode.png) are written in the workspace without any utf8 BOM (see utf8_bom_missing.png). This is not reproducible with p4v (see utf8_bom.png).

       

      I reproduced this issue with the following Pipeline script:

       

      pipeline {

          agent any

          stages {

              stage('sync'){

                  steps

      { p4sync charset: 'utf8-bom', credential: '192.168.1.7', populate: autoClean(delete: true, modtime: false, parallel: [enable: false,   minbytes: '1024',   minfiles: '1',   threads: '4'], pin: '', quiet: true, replace: true, tidy: false), source: depotSource('//depot/...')     }

              }

          }

      }

        Attachments

        1. unicode.png
          unicode.png
          84 kB
        2. utf8_bom.png
          utf8_bom.png
          88 kB
        3. utf8_missing_bom.png
          utf8_missing_bom.png
          89 kB
        4. utf8.txt
          0.0 kB

          Activity

          s3037560 Kevin Park created issue -
          s3037560 Kevin Park made changes -
          Field Original Value New Value
          Description Jenkins 2.255

          P4Plugin for Jenkins 1.11.0

           

          When setting utf8-bom in charset, files with unicode filetype (see unicode.png) are written in the workspace without any utf8 BOM (see utf8_bom_missing.png). This is not reproducible with p4v (see utf8_bom.png).

           

          I reproduced this issue with the following Pipeline script:

           pipeline {

              agent any

              stages {

                  stage('sync'){

                      steps{

                          p4sync charset: 'utf8-bom',

                                        credential: '192.168.1.7',

                                        populate: autoClean(delete: true,

                                                                           modtime: false,

                                                                           parallel: [enable: false,

                                                                                          minbytes: '1024',

                                                                                          minfiles: '1',

                                                                                          threads: '4'],

                                                                           pin: '',

                                                                           quiet: true,

                                                                           replace: true,

                                                                           tidy: false),

                                          source: depotSource('//depot/...')

                      }

                  }

              }

          }
          Jenkins 2.255

          P4Plugin for Jenkins 1.11.0

           

          When setting utf8-bom in charset, files with unicode filetype (see unicode.png) are written in the workspace without any utf8 BOM (see utf8_bom_missing.png). This is not reproducible with p4v (see utf8_bom.png).

           

          I reproduced this issue with the following Pipeline script:

           

          pipeline {

              agent any

              stages {

                  stage('sync'){

                      steps{

          p4sync charset: 'utf8-bom',

          credential: '192.168.1.7',

          populate: autoClean(delete: true,

          modtime: false,

          parallel: [enable: false,

            minbytes: '1024',

            minfiles: '1',

            threads: '4'],

          pin: '',

          quiet: true,

          replace: true,

          tidy: false),

          source: depotSource('//depot/...')

              }

                  }

              }

          }
          p4karl Karl Wirth made changes -
          Attachment utf8.txt [ 52547 ]
          p4karl Karl Wirth made changes -
          Labels P4_A P4_VERIFY

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            s3037560 Kevin Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: