You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Marton Szasz (Jira)" <ji...@apache.org> on 2020/10/27 15:18:00 UTC
[jira] [Updated] (MINIFICPP-1398) EL date functions are not
available on Windows
[ https://issues.apache.org/jira/browse/MINIFICPP-1398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marton Szasz updated MINIFICPP-1398:
------------------------------------
Description:
in Expression.h:
{{#define EXPRESSION_LANGUAGE_USE_DATE}}
{{// Disable date in EL for incompatible compilers}}
{{#if \_\_GNUC\_\_ < 5}}
{{#undef EXPRESSION_LANGUAGE_USE_DATE}}
{{#endif}}
I assume \_\_GNUC\_\_ is evaluated as 0 on Windows and that's the cause.
update: due to problems with the date and timezone libraries on Windows, I'm going to add a fallback based on strftime for now.
was:
in Expression.h:
{{#define EXPRESSION_LANGUAGE_USE_DATE}}
{{// Disable date in EL for incompatible compilers}}
{{#if \_\_GNUC\_\_ < 5}}
{{#undef EXPRESSION_LANGUAGE_USE_DATE}}
{{#endif}}
I assume \_\_GNUC\_\_ is evaluated as 0 on Windows and that's the cause.
> EL date functions are not available on Windows
> ----------------------------------------------
>
> Key: MINIFICPP-1398
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1398
> Project: Apache NiFi MiNiFi C++
> Issue Type: Bug
> Reporter: Marton Szasz
> Assignee: Marton Szasz
> Priority: Major
>
> in Expression.h:
> {{#define EXPRESSION_LANGUAGE_USE_DATE}}
> {{// Disable date in EL for incompatible compilers}}
> {{#if \_\_GNUC\_\_ < 5}}
> {{#undef EXPRESSION_LANGUAGE_USE_DATE}}
> {{#endif}}
> I assume \_\_GNUC\_\_ is evaluated as 0 on Windows and that's the cause.
> update: due to problems with the date and timezone libraries on Windows, I'm going to add a fallback based on strftime for now.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)