Hi, This patch fixes the -ao pcm hintinfo message. It's stll saying: to write WAVE files use -waveheader which should be -ao pcm:waveheader. I'm not sure if vim preserves all the international characters used in different translations, so I didn't want to commit it right away. I could have just fixed the mp-en version, but since it should be fairly trivial to fix it for all translations at once, I thought that was silly. If somebody can assure me this is OK to commit, I will. Otherwise, tell me how I can make it work without fscking up the translations :) --Ivo
Ivo wrote:
Hi,
This patch fixes the -ao pcm hintinfo message. It's stll saying:
to write WAVE files use -waveheader
which should be -ao pcm:waveheader.
I'm not sure if vim preserves all the international characters used in different translations, so I didn't want to commit it right away. I could have just fixed the mp-en version, but since it should be fairly trivial to fix it for all translations at once, I thought that was silly.
If somebody can assure me this is OK to commit, I will.
I'm not sure whether it's clear to commit or not, although it seems like it should be comparatively easy to check, but:
Otherwise, tell me how I can make it work without fscking up the translations :)
for i in `ls help/help_mp-??.h` ; do cat ${i} | sed "s/-waveheader/-ao pcm:waveheader/g" > ${i}.tmp && mv ${i}.tmp ${i} ; done would be my guess; as far as I know, sed does in fact leave all unmatched bytes completely alone (and at any rate the results seem fine on my own machine). At a glance the resulting diffs (or the few individual ones I've looked at) seem to be the same as the ones in your patch, but I'm not in a position to say for certain. -- The Wanderer Warning: Simply because I argue an issue does not mean I agree with any side of it. Secrecy is the beginning of tyranny.
On Monday 19 September 2005 12:49, The Wanderer wrote:
for i in `ls help/help_mp-??.h` ; do cat ${i} | sed "s/-waveheader/-ao pcm:waveheader/g" > ${i}.tmp && mv ${i}.tmp ${i} ; done
would be my guess; as far as I know, sed does in fact leave all unmatched bytes completely alone (and at any rate the results seem fine on my own machine).
At a glance the resulting diffs (or the few individual ones I've looked at) seem to be the same as the ones in your patch, but I'm not in a position to say for certain.
Thanks. I used sed to replace all occurances of -waveheader and diffed the diffs and your right. The output is the same. I suspected vim to be save, but I wasn't sure and it was late and didn't want to risk ruining all the translation files :) I will apply this soon. --Ivo
On Mon, Sep 19, 2005 at 03:45:19PM +0200, Ivo wrote:
On Monday 19 September 2005 12:49, The Wanderer wrote:
for i in `ls help/help_mp-??.h` ; do cat ${i} | sed "s/-waveheader/-ao pcm:waveheader/g" > ${i}.tmp && mv ${i}.tmp ${i} ; done
Probably even sed -i ... would work. At least if the option is present (IIRC it's not portable) it edits in place. But if the power dies during it you're screwed. cvs up then ;)
Thanks. I used sed to replace all occurances of -waveheader and diffed the diffs and your right. The output is the same. I suspected vim to be save,
Hey, vim is not smarter then the user. It won't change things you don't tell him to ;) I've used it to change all of the help/*.h files and some xml/* as well with no side effects. Torinthiel -- Waclaw "Torinthiel" Schiller GG#: 542916, 3073512 torinthiel(at)megapolis(dot)pl gpg: 0906A2CE fpr: EE3E DFB4 C4D6 E22E 8999 D714 7CEB CDDC 0906 A2CE "No classmates may be used during this examination"
Torinthiel wrote:
On Mon, Sep 19, 2005 at 03:45:19PM +0200, Ivo wrote:
On Monday 19 September 2005 12:49, The Wanderer wrote:
for i in `ls help/help_mp-??.h` ; do cat ${i} | sed "s/-waveheader/-ao pcm:waveheader/g" > ${i}.tmp && mv ${i}.tmp ${i} ; done
Probably even sed -i ... would work. At least if the option is present (IIRC it's not portable) it edits in place. But if the power dies during it you're screwed. cvs up then ;)
Yeah, the option does exist, but for the reason you cited among others I'm just not comfortable with making on-the-fly changes without backup. -- The Wanderer Warning: Simply because I argue an issue does not mean I agree with any side of it. Secrecy is the beginning of tyranny.
On Mon, Sep 19, 2005 at 03:14:38PM -0400, The Wanderer wrote:
Yeah, the option does exist, but for the reason you cited among others I'm just not comfortable with making on-the-fly changes without backup.
If it's the only change than you have backup. Remote one - CVS. And sometimes it's easier to do so. Then there's '-i bak' option, which combines the best of both words. Torinthiel -- Waclaw "Torinthiel" Schiller GG#: 542916, 3073512 torinthiel(at)megapolis(dot)pl gpg: 0906A2CE fpr: EE3E DFB4 C4D6 E22E 8999 D714 7CEB CDDC 0906 A2CE "No classmates may be used during this examination"
Torinthiel wrote:
On Mon, Sep 19, 2005 at 03:14:38PM -0400, The Wanderer wrote:
Yeah, the option does exist, but for the reason you cited among others I'm just not comfortable with making on-the-fly changes without backup.
If it's the only change than you have backup. Remote one - CVS.
True enough. I suppose part of my problem is with on-the-fly changes - since I think of them in terms of "sed file > file" (or even "cat file | sed > file"), rather than "sed -i file". I'm not sure what behaviour would result, but since I've had other programs wind up in an endless-until-the-drive-fills-up loop doing things like that, I'm somewhat leery of the whole idea. (And, for the little it's worth, I don't like putting more load on the CVS server than I need to.)
Then there's '-i bak' option, which combines the best of both words.
It wasn't till I looked at the sed man page (for mostly unrelated reasons) that I figured out what you probably meant by this - and yes, "-i=.bak" or similar would be considerably better than what I'd suggested. Guess I've learned a few things today. ^_^ -- The Wanderer Warning: Simply because I argue an issue does not mean I agree with any side of it. Secrecy is the beginning of tyranny.
On Tue, Sep 20, 2005 at 02:12:36AM -0400, The Wanderer wrote:
Torinthiel wrote:
On Mon, Sep 19, 2005 at 03:14:38PM -0400, The Wanderer wrote:
Yeah, the option does exist, but for the reason you cited among others I'm just not comfortable with making on-the-fly changes without backup.
If it's the only change than you have backup. Remote one - CVS.
True enough. I suppose part of my problem is with on-the-fly changes - since I think of them in terms of "sed file > file" (or even "cat file | sed > file"), rather than "sed -i file". I'm not sure what behaviour would result, but since I've had other programs wind up in an endless-until-the-drive-fills-up loop doing things like that, I'm somewhat leery of the whole idea.
True enough, I've also had problems with that kind of editing. But if a program includes a special option to do it I assume it's as safe as it can be.
(And, for the little it's worth, I don't like putting more load on the CVS server than I need to.)
Generally you don't. It's only in case something really screws up, like a power failure. How often does that happen during a file modification that lasts less than a second?
Then there's '-i bak' option, which combines the best of both words.
It wasn't till I looked at the sed man page (for mostly unrelated reasons) that I figured out what you probably meant by this - and yes, "-i=.bak" or similar would be considerably better than what I'd suggested. Guess I've learned a few things today. ^_^
Not that I've ever used it ;). But it's worth mentioning. Anyway, this is getting highly off-topic. Torinthiel -- Waclaw "Torinthiel" Schiller GG#: 542916, 3073512 torinthiel(at)megapolis(dot)pl gpg: 0906A2CE fpr: EE3E DFB4 C4D6 E22E 8999 D714 7CEB CDDC 0906 A2CE "No classmates may be used during this examination"
participants (3)
-
Ivo -
The Wanderer -
Torinthiel