Unicode names are not supported for Zabbix logs on Windows

XMLWordPrintable

    • Type: Change Request
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Component/s: Agent (G)
    • Environment:
      Windows

      Zabbix should use _wfopen() function to create/open log files on Windows to support unicode names. We can add zbx_fopen() function like it was done with zbx_open():

      int	__zbx_open(const char *pathname, int flags)
      {
      	int	ret;
      	wchar_t	*wpathname;
      
      	wpathname = zbx_utf8_to_unicode(pathname);
      	ret = _wopen(wpathname, flags);
      	zbx_free(wpathname);
      
      	return ret;
      }
      

            Assignee:
            Unassigned
            Reporter:
            Andris Zeila
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: