Questions? Feedback?powered byOlark live chat software
Bug 2478

Powerbuilder writes "UTF - 8" encoding to Git commits 21 March, 2019

Rolf Knaden
13 March, 2019
Product: PowerBuilder Category: Other
Version: 2017 R2 Publishing: Public
Status: Fixing Priority: P3
Classification: Appeon bug Resolution:
Tom Jiang 21 March, 2019
Hi Rolf,

Thanks for the update. Currently we don't have a date for the next MR release of 2017 R3. But we will update you when it is available. 

Regards,

Tom Jiang
Rolf Knaden 20 March, 2019
Hi Tom,
sorry for the delay. Was a bit busy.
Now I tested the dll you provided. And it works fine. No UTF - 8 in the commits and Teamcity has nothing to complain about.
Thank you.
Can you tell me, when we will get an official bug-fix for that?
Best regards,
Rolf
Tom Jiang 14 March, 2019
Hi Rolf,

Please download the dll in the previous reply and replace the same file in PB shared folder (C:\Program Files (x86)\Appeon\Shared\PowerBuilder) and see if it resolve the issue.

Please back up the original file before you replace it. 

Note: I verified in 2017 R3 1880 with this DLL and PB won't add the UTF - 8 text in commits. 

Regards,

Tom Jiang
Tom Jiang 14 March, 2019
Test DLL
Tom Jiang 14 March, 2019
Hi Rolf,

Thanks for the update! I will update you when there is any progress on our side.

Regards,

Tom Jiang
Rolf Knaden 13 March, 2019
Hi Tom.
To your questions:
>>>
BTW, can you verify if you can resolve the issue by modify some of the Teamcity configuration?
<<<
No, I don't see the chance of changing the behaviour in the Teamcity configuration. (Unless, someone tells me, how!)

>>>
Additionally, if our developer can change it to "encoding UTF-8", would that solve the problem for you?
<<<
To be honest. I don't know. Because I don't know, what's the correct format for such an encoding-entry. No other Git-Tool makes such an entry. And therefore I have no possibility of comparison.

Regards
Rolf
Tom Jiang 13 March, 2019
Hi Rolf,

Thanks for reporting the issue! I can reproduce the issue of "encoding UTF - 8". I've passed the ticket to our development team to analzye for a solution. 

In the meantime, please work around the issue using a Git client to do a final cmmit. 

BTW, can you verify if you can resolve the issue by modify some of the Teamcity configuration? 

Additionally, if our developer can change it to "encoding UTF-8", would that solve the problem for you?

Regards,

Tom Jiang
Rolf Knaden 13 March, 2019
Download.png (32KB)

*Phenomenon:
We are using a Git repository to store our powerbuilder sources and a Teamcity server to build a setup from it.
Now, when I commit changes to Git from inside Powerbuilder, this commit contains an 
"encoding UTF - 8".
And that's a problem for Teamcity. When such a commit is the last one done, it always encounters an "IllegalCharsetNameException" error:
>>>
[08:32:50]Collecting changes in 1 VCS root
[08:32:50]Failed to collect changes, error: Error collecting changes for VCS repository '"https://gitlabconject.planon-fm.com/conjectFM/Client.git#refs/heads/master" {instance id=19, parent internal id=2, parent id=Client_Http1040469conjectFMClientGitRefsHeadsMaster, description: "https://gitlabconject.planon-fm.com/conjectFM/Client.git#refs/heads/master"}' Collecting changes failed: java.nio.charset.IllegalCharsetNameException: UTF - 8
[08:32:50]Failed to collect changes, error: Error collecting changes for VCS repository '"https://gitlabconject.planon-fm.com/conjectFM/Client.git#refs/heads/master" {instance id=19, parent internal id=2, parent id=Client_Http1040469conjectFMClientGitRefsHeadsMaster, description: "https://gitlabconject.planon-fm.com/conjectFM/Client.git#refs/heads/master"}' Collecting changes failed: java.nio.charset.IllegalCharsetNameException: UTF - 8
[08:32:50]Build finished
<<<
When doing the commit from outside PB (e.g. with sourcetree), no such "encoding" is written.

*Reproduce Steps:
- Do a commit from inside Powerbuilder.
- You see that encoding in the list of commits when executing the command "git log --all --pretty=raw". In the screenshot attached the third last is such a commit done with powerbuilder.

* Remarks:
Tom Jiang told me, he can reproduce the bug (see https://community.appeon.com/index.php/qna/q-a/powerbuilder-writes-utf-8-encoding-to-git-commits).
OS:
Windows 10 
Platform:
64-bit 
Database Type:
 
Database Version: