Hello Daniel,

I don't really understand locale stuff very much but I was working on
testing it this morning so your timing is excellent!

Daniel Fleischer <[email protected]> writes:

> Hi,
>
> If working with Hebrew time locale (e.g. via `(setq system-time-locale 
> "he_IL")') then day names are written using 2
> words, e.g. see 
> <https://metacpan.org/dist/DateTime-Locale/view/lib/DateTime/Locale/he_IL.pod>.
>  This can break org ts
> parsing in delicate ways and lead to issues.

So I've tested this myself and I have more questions then answers.

I set the environment variable LANG to "he_IL.UTF-8" and was able to run
our entire test suite without issue.  If you could specify a specific
issue you're having then I might be able to create a reproducer.

Then I booted up a fresh Emacs again with the LANG variable set and
created the following timestamps (using the function `org-timestamp'
interactively):

<2026-06-19 ו'>
<2026-06-20 ש'>
<2026-06-21 א'>
<2026-06-22 ב'>
<2026-06-23 ג'>
<2026-06-24 ד'>
<2026-06-25 ה'>

I don't see two words there so I'd be curious as to what exactly you
mean by "the day names are written using 2 words".  I know nothing about
Hebrew.

Then I tried to do what you said you've done and ran "(setq
system-time-locale "he_IL")" (still with LANG set to Hebrew).  Now the
timestamps look like this:

<2026-06-19 %e5'>
<2026-06-20 %f9'>

That might render funny so what I'm actually seeing on my ends looks
like this:

<2026-06-19 \345'>
<2026-06-20 \371'>

I'm not sure what's happening there but it does not look right.  Maybe
that's a bug?


>
> Questions: 
>
> 1. Can I override day names with a list of my own? This could be a
> general Emacs issue.

I belive org-mode relies on running things like
"(format-time-string "%A")" which on my test emacs returns "שישי" which
still doesn't look like two words to me.

format-time-string looks up names from your current locale.  So in a way
you did set the list of day names by setting your locale.  As far as I
can tell, there isn't a way in Emacs to override parts of your locale.

> 2. Can I make reasonable edits to the TS regexps patterns without breaking 
> too many things?

Maybe.  But if there is an issue we would like to fix it.

>
> Thanks,
>
> *Daniel Fleischer*
>
> P.s. The day names are 2 words which can easily be written using a single 
> word without loss of meaning.


Reply via email to