View Issue Details

IDProjectCategoryView StatusLast Update
0004929NoesisGUIC++ SDKpublic2026-04-27 01:40
Reportermaverikou Assigned Tojsantos  
PrioritynormalSeveritytrivial 
Status resolvedResolutionfixed 
Product Version3.2.12 
Target Version3.2.13Fixed in Version3.2.13 
Summary0004929: LangServer corrupt path in ANSI build mode
Description

When UNICODE is not defined, CapabilityDiagnostics.cpp line 109 calls GetTempPath (GetTempPathA in ANSI) and then Noesis::UTF8::UTF16To8 on the result, resulting in a corrupt path.

PlatformWindows

Activities

maherne

maherne

2026-03-25 21:23

developer   ~0012109

Thank you for the report, please find attached a patch to fix this issue.

CapabilityCompletion.cpp.patch (633 bytes)   
Index: CapabilityDiagnostics.cpp
===================================================================
--- CapabilityDiagnostics.cpp	(revision 16874)
+++ CapabilityDiagnostics.cpp	(working copy)
@@ -105,8 +105,8 @@
     {
         Noesis::FixedString<260> tempPath;
       #ifdef NS_PLATFORM_WINDOWS_DESKTOP
-        TCHAR tempPathWBuffer[MAX_PATH];
-        GetTempPath(MAX_PATH, tempPathWBuffer);
+        WCHAR tempPathWBuffer[MAX_PATH];
+        GetTempPathW(MAX_PATH, tempPathWBuffer);
         char tempPathBuffer[MAX_PATH];
 
         Noesis::UTF8::UTF16To8((uint16_t*)tempPathWBuffer, tempPathBuffer, MAX_PATH);

Issue History

Date Modified Username Field Change
2026-03-25 12:55 maverikou New Issue
2026-03-25 20:10 sfernandez Assigned To => maherne
2026-03-25 20:10 sfernandez Status new => assigned
2026-03-25 20:10 sfernandez Target Version => 3.2.13
2026-03-25 21:23 maherne Note Added: 0012109
2026-03-25 21:23 maherne File Added: CapabilityCompletion.cpp.patch
2026-03-26 10:22 jsantos Assigned To maherne => jsantos
2026-04-27 01:40 jsantos Status assigned => resolved
2026-04-27 01:40 jsantos Resolution open => fixed
2026-04-27 01:40 jsantos Fixed in Version => 3.2.13