Closed
Bug 108264
Opened 23 years ago
Closed 23 years ago
Getting the "autoSubscribeText" in confirm dialog, instead of newsgroup name.
Categories
(SeaMonkey :: MailNews: Message Display, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: stephend, Assigned: hwaara)
References
()
Details
Attachments
(1 file, 2 obsolete files)
1.36 KB,
patch
|
alecf
:
superreview+
|
Details | Diff | Splinter Review |
Build ID: 2001-11-02-10, RedHat 7.2
Summary: Getting the "autoSubscribeText" in confirm dialog, instead of
newsgroup name.
Steps to Reproduce:
1. Using a linux build, run
news://news.mozilla.org/netscape.public.mozilla.performance
Expected Results:
'Would you like to subscribe to netscape.public.mozilla.performance' (or the
truncated version, n.p.m.performance).
Actual Results:
'Would you like to subscribe to autoSubscribeText'
I don't know why we're not properly escaping whatever %s value we have here and
filling it with the string bundle from .properties
Reporter | ||
Comment 1•23 years ago
|
||
Just a note, this ONLY happens on my linux build, mac and win32 are peachy.
Comment 2•23 years ago
|
||
weird that it's linux only.
Assignee | ||
Comment 3•23 years ago
|
||
Not trying to put blame on anyone but is it possible that this is a stringbundle
regression? Just weird that it's linux only...
Assignee | ||
Comment 4•23 years ago
|
||
I'm sorry, I don't have a linux box and have no idea how this regression can be
triggered from XP code.
Seth said he could look at this.
Assignee: hwaara → sspitzer
Assignee | ||
Comment 5•23 years ago
|
||
Tingley said to me that he also saw this (he's running Linux as well)...
I'm starting to think this is a stringbundle bug, so reassigning to the only one
I could frequently find in the stringbundle CVS blame...but punt as needed - thanks!
Assignee: sspitzer → alecf
Comment 6•23 years ago
|
||
the problem is here:
http://lxr.mozilla.org/seamonkey/source/mailnews/news/src/nsNNTPProtocol.cpp#1097
that NS_ConvertUCS2toUTF8 is a temporary variable, and allocates heap space to
store the string.
You need to do something like:
NS_ConvertUTF8toUCS2 groupUCS2(group);
and then put groupUCS2.get() in the array.
Assignee: alecf → hwaara
Assignee | ||
Comment 7•23 years ago
|
||
Thanks for the help alecf! This patch follows alec's advice, and as a bonus it
includes the fix for bug 109537.
Comment 9•23 years ago
|
||
Comment on attachment 57391 [details] [diff] [review]
Patch -uw
I'll r=alecf, but do we really need to unescape the group name?
Attachment #57391 -
Flags: review+
Assignee | ||
Comment 10•23 years ago
|
||
Yes, that's the fix for bug 109537.
Note that we only unescape the temporary |unescapedString| so that if you
subscribe to, for example, a group named "Håkan", it will display as "Håkan" and
not the escaped version of that string, which would be "H%C3A5Kan".
Assignee | ||
Comment 11•23 years ago
|
||
BTW, tingley applied this patch to his linux build and he confirmed that it
fixed the problem.
Comment 12•23 years ago
|
||
to test, type news://news.mozilla.org/håkan in the browser.
Attachment #57391 -
Attachment is obsolete: true
Comment 13•23 years ago
|
||
Attachment #57676 -
Attachment is obsolete: true
Comment 14•23 years ago
|
||
Comment on attachment 57677 [details] [diff] [review]
patch
sr=alecf
Attachment #57677 -
Flags: superreview+
Comment 15•23 years ago
|
||
fixed checked in for hwaara.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 16•23 years ago
|
||
Verified FIXED using build 2001-11-14-08.
Thanks for fixing this!
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•