Hi folks,
I attached a patch which is seems to fix this problem.
Regards,
Ludwig Reiter
--
Intevation GmbH, Osnabrück
Firmensitz: Neuer Graben 17, 49074 Osnabrück
Registereintrag: Amtsgericht Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
diff -r -u pwgen-2.06/pw_phonemes.c pwgen-2.06-new/pw_phonemes.c
--- pwgen-2.06/pw_phonemes.c 2011-07-25 10:43:21.146884141 +0200
+++ pwgen-2.06-new/pw_phonemes.c 2011-07-25 10:40:45.866880462 +0200
@@ -107,7 +107,9 @@
/* Handle PW_UPPERS */
if (pw_flags & PW_UPPERS) {
if ((first || flags & CONSONANT) &&
- (pw_number(10) < 2)) {
+ (pw_number(10) < 2) &&
+ (! (pw_flags & PW_AMBIGUOUS) ||
+ ! strchr(pw_ambiguous, toupper(buf[c])) )) {
buf[c] = toupper(buf[c]);
feature_flags &= ~PW_UPPERS;
}