[Webkit-unassigned] [Bug 238958] [GTK][WPE] Clear ICU cache only on timezone changes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 7 14:05:54 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=238958

Yusuke Suzuki <ysuzuki at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ysuzuki at apple.com

--- Comment #1 from Yusuke Suzuki <ysuzuki at apple.com> ---
(In reply to Adrian Perez from comment #0)
> On Linux systems which run systemd-timedated, we can probable use
> GDBus to watch the org.freedesktop.timedate1.Timezone property of
> the /org/freedesktop/timedate1 system bus object.
> 
> The problem with the above approach is that many systems do not use
> it (specially embedded ones running WPE, or BSDs running the GTK
> port), so instead we may need to pick some info of /etc/localtime
> (mtime, ctime, inode/device number?, …) and then only invalidate
> the caches when those change.
> 
> Extra complication: the /etc/localtime file can be a symlink (and
> it often is!) so it may be needed to track the properties of the
> target file as well \:-\
> 
> Side question: does systemd-timedated take notice itself of changed
> done manually to the /etc/localtime file *without* using timedatectl?

One way I can come up with is observing file change of /etc/localtime via inotify.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220407/58e92494/attachment.htm>


More information about the webkit-unassigned mailing list