From 378d42b6c84d108d5bba83f7278b79105103fa12 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Fri, 18 Mar 2022 09:45:21 -0500 Subject: [PATCH] Correcting Spanish accented characters, when they come from the terminal output (e.g. via OSSubprocess). --- repository/Fossil/FossilRepo.class.st | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/repository/Fossil/FossilRepo.class.st b/repository/Fossil/FossilRepo.class.st index ea4e341..263bf49 100644 --- a/repository/Fossil/FossilRepo.class.st +++ b/repository/Fossil/FossilRepo.class.st @@ -485,12 +485,16 @@ FossilRepo >> status [ output at: 'commitLog' put: commitLog ]. edited := status lines select: [ :line | line beginsWith: 'EDITED' ]. - output at: 'edited files' put: (edited collect: - [ :line | (line withoutPrefix: 'EDITED')trimmed ]). + output + at: 'edited files' + put: (edited collect: + [ :line | (line withoutPrefix: 'EDITED') trimmed accentedCharactersCorrection ]). missing := status lines select: [ :line | line beginsWith: 'MISSING' ]. - output at: 'missing files' put: (missing collect: - [ :line | (line withoutPrefix: 'MISSING')trimmed ]). + output + at: 'missing files' + put: (missing collect: + [ :line | (line withoutPrefix: 'MISSING') trimmed accentedCharactersCorrection ]). ^ output ]