<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mu.git/lib/utils/mu-utils.cc, branch release/1.12</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/'/>
<entry>
<title>lib/utils: small cleanups</title>
<updated>2026-04-17T20:45:49+00:00</updated>
<author>
<name>Dirk-Jan C. Binnema</name>
<email>djcb@djcbsoftware.nl</email>
</author>
<published>2026-04-09T21:12:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/commit/?id=9c34ecf4a52379520d30b024c199f5ca6c5b38af'/>
<id>9c34ecf4a52379520d30b024c199f5ca6c5b38af</id>
<content type='text'>
Fix some static analysis warnings
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix some static analysis warnings
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: add set_thread_name</title>
<updated>2025-08-24T19:29:59+00:00</updated>
<author>
<name>Dirk-Jan C. Binnema</name>
<email>djcb@djcbsoftware.nl</email>
</author>
<published>2025-08-24T19:29:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/commit/?id=c27ba5e6688194e0a635a57cd2ce0a37f213eb92'/>
<id>c27ba5e6688194e0a635a57cd2ce0a37f213eb92</id>
<content type='text'>
With HAVE_PTHREAD_SETNAME_NP
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With HAVE_PTHREAD_SETNAME_NP
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: use time_t_max for empty datetime</title>
<updated>2024-08-26T14:46:54+00:00</updated>
<author>
<name>Matthew Smith</name>
<email>matthew@gentoo.org</email>
</author>
<published>2024-08-26T14:46:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/commit/?id=075394b35f33bcf684eb0b0023a8640a3ce9c8f5'/>
<id>075394b35f33bcf684eb0b0023a8640a3ce9c8f5</id>
<content type='text'>
In Mu::parse_date_time, when provided with an empty string, return
time_t_max instead of G_MAXINT64. For systems with a 64-bit time_t, there
is no difference. With a 32-bit time_t it caused a test to fail:

    not ok /utils/date-basic - ERROR:../mu-1.12.4/lib/utils/tests/test-utils.cc:92
    void test_date_basic(): assertion failed
    (parse_date_time(std::get&lt;0&gt;(test), std::get&lt;1&gt;(test)).value_or(-1)
      == std::get&lt;2&gt;(test)): (18446744073709551615 == 2147483647)

This edge case probably only affected the test, as when other parts of
the application call parse_date_time (e.g. mu-server.cc and
mu-query-processor.cc), they check if the input string is empty first.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Mu::parse_date_time, when provided with an empty string, return
time_t_max instead of G_MAXINT64. For systems with a 64-bit time_t, there
is no difference. With a 32-bit time_t it caused a test to fail:

    not ok /utils/date-basic - ERROR:../mu-1.12.4/lib/utils/tests/test-utils.cc:92
    void test_date_basic(): assertion failed
    (parse_date_time(std::get&lt;0&gt;(test), std::get&lt;1&gt;(test)).value_or(-1)
      == std::get&lt;2&gt;(test)): (18446744073709551615 == 2147483647)

This edge case probably only affected the test, as when other parts of
the application call parse_date_time (e.g. mu-server.cc and
mu-query-processor.cc), they check if the input string is empty first.
</pre>
</div>
</content>
</entry>
<entry>
<title>mu-utils: update casting from int64_t -&gt; time_t</title>
<updated>2024-04-13T17:06:39+00:00</updated>
<author>
<name>Dirk-Jan C. Binnema</name>
<email>djcb@djcbsoftware.nl</email>
</author>
<published>2024-04-13T17:06:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/commit/?id=a6ec43a740cf2ba3ba023099e1e0592a50ff1783'/>
<id>a6ec43a740cf2ba3ba023099e1e0592a50ff1783</id>
<content type='text'>
Esp. for systems with 32-bit time_t.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Esp. for systems with 32-bit time_t.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: add utf8_wordbreak</title>
<updated>2023-09-17T15:11:10+00:00</updated>
<author>
<name>Dirk-Jan C. Binnema</name>
<email>djcb@djcbsoftware.nl</email>
</author>
<published>2023-09-17T07:01:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/commit/?id=7cbab21099ef70cff742c727cbd9ceb46f526d5a'/>
<id>7cbab21099ef70cff742c727cbd9ceb46f526d5a</id>
<content type='text'>
Determine if a string has wordbreaks in a mostly Xapian-compatible way.
We need this to determine what strings should be considered "phrases".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Determine if a string has wordbreaks in a mostly Xapian-compatible way.
We need this to determine what strings should be considered "phrases".
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: handle "unbroken" scripts</title>
<updated>2023-09-09T08:40:36+00:00</updated>
<author>
<name>Dirk-Jan C. Binnema</name>
<email>djcb@djcbsoftware.nl</email>
</author>
<published>2023-09-09T08:37:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/commit/?id=9c28c65d45eab683b2539902837c1f74db27ab61'/>
<id>9c28c65d45eab683b2539902837c1f74db27ab61</id>
<content type='text'>
Do not removing combining characters from scripts without explicit word
boundaries, such as those for CJK.

Reuse some Xapian code for that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Do not removing combining characters from scripts without explicit word
boundaries, such as those for CJK.

Reuse some Xapian code for that.
</pre>
</div>
</content>
</entry>
<entry>
<title>mu-utils: support UTC in parse_date_time</title>
<updated>2023-08-21T15:29:21+00:00</updated>
<author>
<name>Dirk-Jan C. Binnema</name>
<email>djcb@djcbsoftware.nl</email>
</author>
<published>2023-08-21T15:26:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/commit/?id=c1950ae0cb2d2d8a1be6de239943379ab48c0440'/>
<id>c1950ae0cb2d2d8a1be6de239943379ab48c0440</id>
<content type='text'>
Parsing dates known to be in UTC.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Parsing dates known to be in UTC.
</pre>
</div>
</content>
</entry>
<entry>
<title>remove Mu::format, use mu_format</title>
<updated>2023-08-19T17:04:50+00:00</updated>
<author>
<name>Dirk-Jan C. Binnema</name>
<email>djcb@djcbsoftware.nl</email>
</author>
<published>2023-08-19T14:13:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/commit/?id=15f08488d36f12a0ffd3d9f641a393b0e4200afe'/>
<id>15f08488d36f12a0ffd3d9f641a393b0e4200afe</id>
<content type='text'>
Use the new fmt-based formatting.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the new fmt-based formatting.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: replace time_to_string with fmt-based formatting</title>
<updated>2023-08-06T13:19:43+00:00</updated>
<author>
<name>Dirk-Jan C. Binnema</name>
<email>djcb@djcbsoftware.nl</email>
</author>
<published>2023-08-05T07:51:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/commit/?id=27c07280b15d0e972026771457b8db4580b09ee1'/>
<id>27c07280b15d0e972026771457b8db4580b09ee1</id>
<content type='text'>
It's faster; make "mu find" ~5-10% faster, and removes some code we no
longer need.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's faster; make "mu find" ~5-10% faster, and removes some code we no
longer need.
</pre>
</div>
</content>
</entry>
<entry>
<title>fmt: more update to use new fmt-based APIs</title>
<updated>2023-07-06T18:49:50+00:00</updated>
<author>
<name>Dirk-Jan C. Binnema</name>
<email>djcb@djcbsoftware.nl</email>
</author>
<published>2023-07-06T09:22:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.tews.dev/cgit/mu.git/commit/?id=82235b9d49307e9fd79b78d7aeeee701f3b1caef'/>
<id>82235b9d49307e9fd79b78d7aeeee701f3b1caef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
