06-05-2025 01:37 AM
Is this primitive exposed somewhere in the palette?
I found it was used by a VI in the NI Unicode Tools
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
06-05-2025 01:47 AM
Off pallet, but it's been widely used for a long time.
06-17-2025 09:45 AM
@drjdpowell I'm having issues with the primitive.
On Linux it behaves differently whether it runs as code source or in a built shared library.
In source code, no problem.
In built shared library, the primitive return error 1396 "cannot convert text from the source character set to the destination character set."
The small tweek below fixed the issue for me.
I'm not entirely sure how the "system default" is handled, but it wouldn't be the only primitive that misbehaves when running as a service on Linux.
https://forums.ni.com/t5/LabVIEW/Application-Directory-primitive-bug/m-p/4364464#M1282065
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
06-17-2025 10:35 AM - edited 06-17-2025 10:40 AM
locale text encoding is a tricky topic. Generally most Linux installations nowadays use UTF-8 as default locale encoding, at least in the user session. This means that that node does effectively nothing since the locale specific encoding is the same as the UTF-8 side of things.
In a console session, or a hidden session, however this could be very different depending on how the system is setup. Try to execute "locale" as a command line command in your LabVIEW editor session (user session) and inside your shared library invoked from a service!
https://www.baeldung.com/linux/terminal-locales-check-character-encoding
Of course it is entirely possible that the according code is not available in a runtime compiled shared library, or maybe the according encoding translation libraries used (likely iconv) is not available in the service session context.
06-17-2025 03:10 PM
thank you for the advice, i'll try that
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus