How to change/force the user.country and user.language properties?

Hello,

I am a french user of teamcity so my agent user.country and user.language properties are set to FR

user.country FR
user.language fr


I wonder if there is a (simple) way to change it to en.
In fact, my MSBuild output log file contains strange characters ( éàèçù... characters are misunderstood)

Thanks

7 comments
Comment actions Permalink

You can specify required values for these properties on the build configuration "Properties & environment variables" step.

0
Comment actions Permalink

It works, but it doesn't provide the result I expected.

I thought the MSBuild will use theses properties to define its output language which remains FR

"Le projet "D:\App\TeamCity\buildAgent\work\development\MySolution.sln" g‚nŠre..."
instead of "Le projet "D:\App\TeamCity\buildAgent\work\development\MySolution.sln" génére..."

Moreover, changing the properties in the  "Properties and Environement variables" has no effect on the agent properties.

But the build parameters tab shows the following :

System properties

Name Value passed to build
user.country EN
user.language en
0
Comment actions Permalink

Could you please try to change locale settings for the user that runs build agent (service).
Thanks!

0
Comment actions Permalink

On my Windows Vista, account that runs the Agent service is LocalSystem and I don't know how to change its regional settings.

0
Comment actions Permalink

Please do the following:
  - On 'Computer' icon press right-click and select manage
  - In 'Computer management' open 'Local users and groups/Users'
  - Right-click to create new user
  - Make the user a member of  'Administrators' group
  - Login under that user
  - Open 'Control Panel\Clock, Language, and Region'
  - Select Regional and Language options
  - Select here english format, and proper location in location tab
  - log off this user
  - get back to Computer Management window
  - open 'Services and Applications/Services'
  - select TeamCity Build Agent service
  - open the service properties
  - open 'Log on' tab
  - Select newly created account here
  - Press OK.
  - Stop TeamCity Build Agent service
  - Start that service again.

I hope this will solve your issue.
Thanks!

0
Comment actions Permalink

I did what you suggested but.... there are still unavailable character in my log.
After further and deeper investigation I notice that only the msbuild output part (added when compilation failed) - in brown in my log - contains the misinterpreted char.
You can see the 10:01:54 and 10:02:16 timestamped lines contain a "é" in "cibles par défaut".

[10:01:50]: Projet "ContinuousIntegration.build.teamcity.patch.tcprojx" (InstallSolution cibles) : (27s)
[10:01:54]: [Projet "ContinuousIntegration.build.teamcity.patch.tcprojx" (InstallSolution cibles) :] Projet "Ynolis Solution.sln" (cibles par défaut) : (23s)
[10:02:16]: [Projet "Ynolis Solution.sln" (cibles par défaut) :] Projet "Ynolis.wixproj" (cibles par défaut) : (1s)
[10:02:18]: [Projet "Ynolis.wixproj" (cibles par défaut) :] D:\App\TeamCity\buildAgent\work\deployments\src\app\Ynolis\Ynolis.wxs(3, 0): error CNDL0108: The Product/@Version attribute's value, '..', is not a valid version. Legal version values should look like 'x.x.x.x' where x is an integer from 0 to 65534.
[10:02:18]: [Projet "Ynolis.wixproj" (cibles par défaut) :] D:\App\TeamCity\buildAgent\work\deployments\src\app\Ynolis\Ynolis.wxs(3, 0): error CNDL0010: The Product/@Version attribute was not found; it is required.
[10:02:18]: MSBuild output: CopyFilesToOutputDirectory cibleÿ: Copie du fichier de "obj\Release\SMTP Pickup Test Email.exe" vers "..\..\..\build\Ynolis Solution\SMTP Pickup Test Email.exe". SMTP Pickup Test Email -> D:\App\TeamCity\buildAgent\work\deployments\build\Ynolis Solution\SMTP Pickup Test Email.exe Copie du fichier de "obj\Release\SMTP Pickup Test Email.pdb" vers "..\..\..\build\Ynolis Solution\SMTP Pickup Test Email.pdb". Ynolis cibleÿ: __________________________________________________ Le projet "D:\App\TeamCity\buildAgent\work\deployments\Ynolis Solution.sln" g‚nŠre "D:\App\TeamCity\buildAgent\work\deployments\src\app\Ynolis\Ynolis.wixproj" (cibles par d‚faut)ÿ: PrepareForBuild cibleÿ: Cr‚ation du r‚pertoire "obj\Release\". Cr‚ation du r‚pertoire "..\..\..\build\Ynolis Solution\Setup\binaries\". Compile cibleÿ: ..\..\..\tools\wix\candle.exe -dBuild=Release -dReleaseLvl=1 -dVersion= -dMajorVersion= -dMinorVersion= -dBuildVersion= -out obj\Release\Ynolis.wixobj -arch x86 -ext ..\..\..\tools\wix\WixSqlExtension.dll -ext ..\..\..\tools\wix\WixUIExtension.dll -ext ..\..\..\tools\wix\WixUtilExtension.dll -ext ..\..\..\tools\wix\WixFirewallExtension.dll Ynolis.wxs Microsoft (R) Windows Installer Xml Compiler version 3.0.4805.0 Copyright (C) Microsoft Corporation. All rights reserved. Ynolis.wxs D:\App\TeamCity\buildAgent\work\deployments\src\app\Ynolis\Ynolis.wxs(3): error CNDL0108: The Product/@Version attribute's value, '..', is not a valid version. Legal version values should look like 'x.x.x.x' where x is an integer from 0 to 65534. D:\App\TeamCity\buildAgent\work\deployments\src\app\Ynolis\Ynolis.wxs(3): error CNDL0010: The Product/@Version attribute was not found; it is required. G‚n‚ration de la cible "Compile" termin‚e dans le projet Ynolis.wixproj" -- �CHEC. G‚n‚ration du projet "Ynolis.wixproj" termin‚e -- �CHEC. La g‚n‚ration a ‚chou‚. D:\App\TeamCity\buildAgent\work\deployments\src\app\Ynolis\Ynolis.wxs(3): error CNDL0108: The Product/@Version attribute's value, '..', is not a valid version. Legal version values should look like 'x.x.x.x' where x is an integer from 0 to 65534. D:\App\TeamCity\buildAgent\work\deployments\src\app\Ynolis\Ynolis.wxs(3): error CNDL0010: The Product/@Version attribute was not found; it is required. 0 Avertissement(s) 2 Erreur(s) Temps ‚coul‚ 00:00:27.83
[10:02:18]: Process exit code: 1
[10:02:18]: Publishing artifacts (6s)


It confusing me because I don't know if it a team city- or a msbuild- or a Firefox- or a Vista- issue. (I've got same problem with Internet Explorer)


Thanks for your help.







0
Comment actions Permalink

Sorry for long the delay. The question is still actual with latest TeamCity release?

Kind regards,
Marina

0

Please sign in to leave a comment.