You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm making CI/CD for some legacy NAV 2018 project which uses a lot of local language code/text values and met strange issue related to compilation in container.
Prepare simple test codeunit, which uses local language text. Save it in text format: EncodingIssueDemo.txt
OBJECT Codeunit 50000 Encoding Issue Demo
{
OBJECT-PROPERTIES
{
Date=;
Time=;
Version List=Test;
}
PROPERTIES
{
Subtype=Test;
OnRun=BEGIN
END;
}
CODE
{
[Test]
PROCEDURE LocalLanguageErrorSample@1170000002();
VAR
GLSetup@1170000000 : Record 98;
BEGIN
// Some local language comment:
// пример комментария
// Sample of local language error
ERROR('Ошибка');
END;
BEGIN
END.
}
}
How it looks in development environment:
How initial test result looks in test tool interface:
So far so good.
Run script to import and compile this object in container:
Now go to DevEnv and recompile object manually. After that everything looks as expected (both C/AL code and test result)
In the repository I store objects in UTF8 encoding, so I tried to repeat steps 3-4 with incorrectly encoded file. EncodingIssueDemo_UTF8.txt
To my surprise I got expected test result!
But code in DevEnv is spoiled:
And after manual compilation test result is spoiled too:
Additional context
I tried container with RU system locale, which was made with process isolation. Also I used parameters -locale and - setServiceTierUserLocale for New-NavContainer and -country ru for atifacts. Same result again.
I suppose, that problem is related to compilation in container. I tried to do the same with "finsql.exe command=compileobjects…" but got same result.
I understand that this is obsoleted NAV version and it is not supported any more. But maybe you see the step I missed or you know some trick which could help resolve this?
Thanks!
The text was updated successfully, but these errors were encountered:
I won't have time to look at stuff like this for any foreseeable future.
if anybody else have seen this before and have a fix or a workaround, please come forward.
Else, you are more than welcome to troubleshoot and create a PR on BcContainerHelper with a fix if you manage to find it.
I won't have time to look at stuff like this for any foreseeable future. if anybody else have seen this before and have a fix or a workaround, please come forward.
Else, you are more than welcome to troubleshoot and create a PR on BcContainerHelper with a fix if you manage to find it.
Hi,
I'm making CI/CD for some legacy NAV 2018 project which uses a lot of local language code/text values and met strange issue related to compilation in container.
Repros
EncodingIssueDemo.txt
How it looks in development environment:
How initial test result looks in test tool interface:
So far so good.
Same step with debugger:
Result: local language text values spoiled.
In the repository I store objects in UTF8 encoding, so I tried to repeat steps 3-4 with incorrectly encoded file.
EncodingIssueDemo_UTF8.txt
To my surprise I got expected test result!
But code in DevEnv is spoiled:
And after manual compilation test result is spoiled too:
Additional context
I tried container with RU system locale, which was made with process isolation. Also I used parameters -locale and - setServiceTierUserLocale for New-NavContainer and -country ru for atifacts. Same result again.
I suppose, that problem is related to compilation in container. I tried to do the same with "finsql.exe command=compileobjects…" but got same result.
I understand that this is obsoleted NAV version and it is not supported any more. But maybe you see the step I missed or you know some trick which could help resolve this?
Thanks!
The text was updated successfully, but these errors were encountered: