Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 13713] New: cleanse md5sum check does not work due to locale (PATCH)

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 13713] New: cleanse md5sum check does not work due to locale (PATCH)
  • Date: 14 Apr 2007 07:45:23 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=13713

Summary: cleanse md5sum check does not work due to locale (PATCH)
Product: Sorcery
Version: 1.13.x
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Cleanse
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: sobukus AT sourcemage.org


cleanse checks the output of md5sum for failed sums by grepping for FAILED;
but
when the locale happens to be non-english, that doesn't work.
A trivial patch (to cleanse from stable 1.13.6):

--- cleanse.orig 2007-04-14 09:36:44.000000000 +0200
+++ cleanse 2007-04-14 09:37:56.000000000 +0200
@@ -911,7 +911,7 @@

# for some reason stuffing the output of this in a variable loses the
# newlines and thus files with spaces in them get lost
- md5sum --check $TMP_MD5_LOG 2>/dev/null | grep ': FAILED$' |
+ LANG=C md5sum --check $TMP_MD5_LOG 2>/dev/null | grep ': FAILED$' |
sed "s${A}: FAILED\$${A}${A}" > $BROKEN1
# cant use awk above with : as a seperator due to files with :'s in their
name

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [SM-Sorcery-Bugs] [Bug 13713] New: cleanse md5sum check does not work due to locale (PATCH), bugzilla-daemon, 04/14/2007

Archive powered by MHonArc 2.6.24.

Top of Page