#804163 etckeeper should use locale independent character classes in regular expressions

#804163#5
Date:
2015-11-05 15:34:39 UTC
From:
To:
Dear Maintainer,

after installing the etckeeper package and setting Mercurial as
VCS I executed command 'etckeeper init', but it failed with
"obscure" message

	etckeeper: invalid command init

Since switching back to GIT didn't make things better, I took
a peek into the /usr/bin/etckeeper, which revealed that regular
expressions use [a-z] and [0-9a-zA-Z] instead of [:lower:] and
[:alnum:]. As you can see from the system info below, the system
uses Estonian as the default locale in which the 'z' isn't the
last character in the alphabet.

The bug in question was introduced with commit
5d4fc876ad92b3f2844debade49484b862799dcc

If updating the regex is not an option, could you consider
setting the locale to C or POSIX in the script, please?


Best regards,

	Kristjan

PS. I'm aware that this bug is filed against version 1.15, but the
this bug is present also in the latest sources. I simply
encountered it on a stable system first.

#804163#10
Date:
2015-11-05 22:36:26 UTC
From:
To:
Hi!

Thanks for filing this bug report. It does look like a real issue!

Do you think you could provide a patch that would fix this for you or a
way to reproduce the issue?

I do believe changing the regex would be the right solution, as opposed
to changing the locale...

A.

#804163#15
Date:
2015-11-06 08:12:37 UTC
From:
To:
Antoine Beaupré wrote:

To reproduce:
* Generate locale data for et_EE.UTF-8 (needed only once).
* Set the environment variable LC_COLLATE to et_EE.UTF-8 (ISO encodings like
  ISO-8895-15, ISO-8895-4 or something similar will give same error).
* Execute any etckeeper command (I suggest 'etckeeper unclean' as it should
  perform only reads) and observe the bug.


Best regards,

	Kristjan
--- /usr/bin/etckeeper.orig  2015-11-05 14:03:15.642317316 +0200
+++ /usr/bin/etckeeper    2015-11-05 14:04:14.630314191 +0200
@@ -75,7 +75,7 @@
        command=pre-install
 fi

#804163#20
Date:
2025-03-12 01:20:18 UTC
From:
To:
Hi There,
Hope you're in good health.
We're Manufacturer & Exporter of Pump from China.
Customize designs, label & packing available.

Im sending our product catalog. If you're interested, we can provide you with a quote.

We are looking forward to have good business with you.
Best Regards
John

#804163#25
Date:
2026-04-25 00:33:17 UTC
From:
To:
Dear Sir or Madam,
I hope this message finds you well.
My name is Andy, and I represent a Pump manufacturing company based in China. I came across your company and noted that you operate within the same industry. I believe there may be potential opportunities for cooperation between our organizations.

We specialize in the manufacture of high-quality Pump and have over 12 years of experience in the industry. Our factory is equipped with advanced production facilities and an experienced technical team, enabling us to support OEM/ODM projects, customized designs, and stable mass production. We place strong emphasis on quality control throughout the manufacturing process to ensure consistent and reliable product performance.

In addition, we are currently offering competitive promotional pricing to support new partnerships. Based on your specific requirements, we would be pleased to provide customized solutions with both quality and cost advantages.

Should this be of interest, I would be happy to share further information and prepare a quotation tailored to your needs. Please feel free to contact me at your convenience.

Thank you for your time and consideration. I look forward to your response.

Yours sincerely,
Andy