From 6fc036b3ea772af07568e2eacc85358a4561986e Mon Sep 17 00:00:00 2001 From: Martin Regen Date: Thu, 1 Jun 2017 12:36:29 +0200 Subject: [PATCH] fix for [CTT] Response.Servers[0].ApplicationName.Locale is empty by default set all LocalizedText to InvariantCulture two letter iso code --- Stack/Opc.Ua.Core/Types/BuiltIn/LocalizedText.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stack/Opc.Ua.Core/Types/BuiltIn/LocalizedText.cs b/Stack/Opc.Ua.Core/Types/BuiltIn/LocalizedText.cs index ab94da336d..8451e2b55a 100644 --- a/Stack/Opc.Ua.Core/Types/BuiltIn/LocalizedText.cs +++ b/Stack/Opc.Ua.Core/Types/BuiltIn/LocalizedText.cs @@ -150,7 +150,7 @@ namespace Opc.Ua /// The plain text stored within this object public LocalizedText(string text) { - m_locale = null; + m_locale = CultureInfo.InvariantCulture.TwoLetterISOLanguageName; m_text = text; }