site  contact  subhomenews

MoManager: backslash bug fixed

November 24, 2012 — BarryK
Forum member and coordinator of the Russian (ru) translation langpack of Puppy, reported a problem of the '' backslash character disappearing:

At first, I put in some checking so that '[' and ']' characters in a regular expression will always be escaped, which I think should be ok in the envisaged scenarios. So, if an escape is accidentally left off, it will be automatically restored. Woof commit:

Then I tracked down exactly what caused the problem that rodin.s experienced, and fixed it. Woof commit:


Commit 'b85f127121' reverted
Username: BarryK
I decided to revert commit 'b85f127121', as I am not 100% certain about side-effects. The other commit is the essential one, that fixes the bug the rodin.s reported.

0setup and SSS
Username: rodin.s
"I have made translation for 0setup and it stopped working after being translated with error: [code]/usr/local/petget/0setup: line 9: syntax error: unterminated quoted string[/code] I found it myself with help of geany syntax highlighting. One quote was missing at the end of line 370. I added that quote and script seems to be working now. But I cannot put this translation into langpack because automatic translation will break the script. I guess I put translated script itself into langpack. One thing about sed translation. It works strange. [img][/img] It translates what it shouldn't and point replaces any character (lines 638, 639).

0setup and SSS
Username: rodin.s
"I guess I have fixed it. I have removed dot after "success" (line 71 script_strings): [code]s%...success%%[/code] Actually I removed it from translation file Now langpack installation doesn't break 0setup.

0setup translation
Username: BarryK
"rodin.s, See here:

Tags: woof