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

Pipeline can't run 'bat' when the job name contains chinese characters

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have an pipeline job contains chinese characterss, when run the job, it hungs when launching 'bat', even restart the jenkins service.
      Every thing is ok when the job named in english.

      I looked at jenkins-wrap.bat in the durable temporary directory, the file is encoded with utf-8, maybe this caused the problem.

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Maybe. I cannot keep track of current Windows policy for Unicode in things like batch scripts. Likely to be very hard for me to test changes in this area.

          Show
          jglick Jesse Glick added a comment - Maybe. I cannot keep track of current Windows policy for Unicode in things like batch scripts. Likely to be very hard for me to test changes in this area.
          Hide
          thecopy Erik Jonsson Thorén added a comment -

          This also happens with nordic characters like å ä ö.

          Show
          thecopy Erik Jonsson Thorén added a comment - This also happens with nordic characters like å ä ö.
          Hide
          awk Василий Казьмин added a comment -

          Hi all.
          in jenkins-wrap.bat need add line^

          chcp 65001

          becose bat-file in utf-8 encoding

          Show
          awk Василий Казьмин added a comment - Hi all. in jenkins-wrap.bat need add line^ chcp 65001 becose bat-file in utf-8 encoding
          Hide
          awk Василий Казьмин added a comment -

          Also set HKCU\Console\CodePage dword value: 65001

          Show
          awk Василий Казьмин added a comment - Also set HKCU\Console\CodePage dword value: 65001

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              dayongxie Dayong Xie
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: