Bug 65119

Summary: %c doesn't work correctly in log formats
Product: Apache httpd-2 Reporter: Christoph Anton Mitterer <calestyo>
Component: mod_log_configAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.4.46   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Christoph Anton Mitterer 2021-02-02 01:57:45 UTC
Hey.

I've just noted that something like:
   LogFormat       "%{%c}t"
doesn't work as expected and doesn't use the locale's preferred date/time format, but some default English-whatever format.

I'm using a custom locale, but something like:
  $ date +%c
works just fine and produces the expected string.

I've also checked the /proc/<pid>/environment of all apache processes - the contain the correct LANG, so it can't be any wrongdoing in Debian's startup scripts but must probably be some issue within Apache itself.


Any ideas how to further debug this?

Cheers,
Chris.