Closed
Bug 374039
Opened 18 years ago
Closed 6 years ago
Some dates not displayed when LC_TIME=hi_IN.UTF-8
Categories
(Core :: Internationalization, defect)
Tracking
()
RESOLVED
INCOMPLETE
mozilla1.9alpha5
People
(Reporter: karim, Assigned: jag+mozilla)
References
()
Details
(Keywords: fixed1.8.0.12, fixed1.8.1.4)
Attachments
(4 files)
1.59 KB,
message/rfc822
|
Details | |
1.78 KB,
message/rfc822
|
Details | |
1.81 KB,
patch
|
jshin1987
:
review+
jag+mozilla
:
superreview+
dveditz
:
approval1.8.1.4+
dveditz
:
approval1.8.0.12+
|
Details | Diff | Splinter Review |
6.32 KB,
patch
|
smontagu
:
review+
Biesinger
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20060601 Firefox/2.0.0.2 (Ubuntu-edgy)
Build Identifier: version 1.5.0.10 (20070306)
I'm using mozilla thunderbird under kubuntu dapper drake 6.10. . My locale settings are as follows:
LANG=hi_IN
LC_CTYPE=hi_IN.UTF-8
LC_NUMERIC=hi_IN.UTF-8
LC_TIME=hi_IN.UTF-8
LC_COLLATE=hi_IN.UTF-8
LC_MONETARY=hi_IN.UTF-8
LC_MESSAGES=hi_IN.UTF-8
LC_PAPER=hi_IN.UTF-8
LC_NAME=hi_IN.UTF-8
LC_ADDRESS=hi_IN.UTF-8
LC_TELEPHONE=hi_IN.UTF-8
LC_MEASUREMENT=hi_IN.UTF-8
LC_IDENTIFICATION=hi_IN.UTF-8
LC_ALL=
locales available on my machine are :
bn_BD
bn_IN
C
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZW.utf8
hi_IN
hi_IN.utf8
POSIX
Unless I change LC_TIME to en_US.UTF-8 some dates are not displayed by thunderbird, as the screenshot shows. Some dates are displayed properly, however.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Reporter | ||
Updated•18 years ago
|
Version: unspecified → 1.5
Reporter | ||
Comment 1•18 years ago
|
||
The screenshot is at http://191a.net/nodate.png . And I mistakenly stated that I'm using dapper drake when I actually meant edgy eft.
Reporter | ||
Comment 2•18 years ago
|
||
I believe the results should be reproducible on other machines by installing a hindi font (there should be an indic fonts package in your repository somewhere), exporting the variable and starting up your copy of thunderbird.
Comment 3•18 years ago
|
||
Could an extension cause the problem? Have you tried tb 2.0 (not final yet, but soon)? <http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-mozilla1.8/>
Reporter | ||
Comment 4•18 years ago
|
||
Magnus, Hi.
Could you tell me how to run this particular file ? I downloaded the tarball and extracted it, but when I try and run thunderbird, I get the following error:
karim@bhim:~/thunderbird-2.0pre.en-US.linux-i686/thunderbird$ pwd
/home/karim/thunderbird-2.0pre.en-US.linux-i686/thunderbird
karim@bhim:~/thunderbird-2.0pre.en-US.linux-i686/thunderbird$ ./thunderbird
Segmentation fault
karim@bhim:~/thunderbird-2.0pre.en-US.linux-i686/thunderbird$
Is this merely a problem with this particular nightly?
Reporter | ||
Comment 5•18 years ago
|
||
Since I couldn't get the nightly to run, I went home and built it on my Gentoo box. I was running tbird version 2 beta 2 build 20070316. I also disabled all extensions and made sure that LC_ALL and LC_CTIME were set to hi_IN.UTF-8 . The problem persisted and I have uploaded a flash video that illustrates the issue to http://191a.net/baddates.html .
Comment 6•18 years ago
|
||
Don't know why the nightly didn't run for you...
Do you get any errors in the Error Console (JavaScript Console in 1.5)?
Is there something particular with the dates of the mails that don't display? Can you give the Date: header of a few of the ones that doesn't work?
Reporter | ||
Comment 7•18 years ago
|
||
On the unstable build (running on Gentoo), i get this message (I think it's not relevant but pasting anyway)
Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIIOService2.manageOfflineStatus]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///usr/lib/mozilla-thunderbird/components/offlineStartup.js :: anonymous :: line 95" data: no]
Source File: file:///usr/lib/mozilla-thunderbird/components/offlineStartup.js
Line: 95
Reporter | ||
Comment 8•18 years ago
|
||
This is an email (.eml file) that does not display the date field.
Reporter | ||
Comment 9•18 years ago
|
||
Thunderbird DOES show the date of this email (.eml file)
Comment 10•18 years ago
|
||
Is it possible that dates with times PM are being displayed and times AM are not?
Comment 11•18 years ago
|
||
More exactly, I think some dates need more space than the 80 bytes that we allow in nsDateTimeFormatUnix::FormatTMTime().
Assignee: mscott → smontagu
Updated•18 years ago
|
Component: Mail Window Front End → Internationalization
Product: Thunderbird → Core
QA Contact: front-end → i18n
Version: 1.5 → Trunk
Comment 12•18 years ago
|
||
I think that this was probably the original intention, considering that NSDATETIME_FORMAT_BUFFER_LEN*2 is the size of strOut.
Attachment #258982 -
Flags: superreview?(jag)
Attachment #258982 -
Flags: review?(jshin1987)
Comment 13•18 years ago
|
||
Comment on attachment 258982 [details] [diff] [review]
Patch
r=jshin
It appears that 'x2' factor was used originally for the inflation of a single byte in ASCII/ISO-8859-x to 2 bytes. Probably because UTF-8 locales were not widely used.
Updated•18 years ago
|
Status: UNCONFIRMED → ASSIGNED
Component: Internationalization → Mail Window Front End
Ever confirmed: true
Product: Core → Thunderbird
Comment 14•18 years ago
|
||
Moving back to the original component to request blocking-thunderbird2. This makes the main mail display seriously hard to use and affects all the Indian languages. Risk is minimal: the patch doesn't even change the size of the buffer used to receive the formatted date string.
Flags: blocking-thunderbird2?
Comment 15•18 years ago
|
||
Comment on attachment 258982 [details] [diff] [review]
Patch
oops. forgot '+' it
Attachment #258982 -
Flags: review?(jshin1987) → review+
Assignee | ||
Comment 16•18 years ago
|
||
This compiles (on my Mac) but is untested. Maybe something we should consider for trunk?
Assignee | ||
Comment 17•18 years ago
|
||
Comment on attachment 258982 [details] [diff] [review]
Patch
sr=jag for a minimalistic branch fix.
Attachment #258982 -
Flags: superreview?(jag) → superreview+
Comment 18•18 years ago
|
||
Comment on attachment 258982 [details] [diff] [review]
Patch
We could be tagging for Thunderbird 2 as early as tomorrow morning, I'll ping the 1.8.1.4 triage team to see if they'll approve this for the branch. It looks very low risk and fixes a problem for intl mail users on linux.
Attachment #258982 -
Flags: approval1.8.1.4?
Comment 19•18 years ago
|
||
Comment on attachment 258982 [details] [diff] [review]
Patch
Approved for 1.8/1.8.0 branches, a=dveditz
Attachment #258982 -
Flags: approval1.8.1.4?
Attachment #258982 -
Flags: approval1.8.1.4+
Attachment #258982 -
Flags: approval1.8.0.12+
Comment 20•18 years ago
|
||
Simon, I'll land the branch patch for 1.8 later tonight if you don't beat me to it to ensure that's its checked in before we tag tomorrow morning. Thanks again for working on this.
Updated•18 years ago
|
Flags: blocking-thunderbird2? → blocking-thunderbird2+
Comment 21•18 years ago
|
||
Simon I landed this on the 1.8 branch tonight so it would make it into tb2. I'll let you land it on the trunk and the 1.8.0 branch. Thanks again for the patch.
Keywords: fixed1.8.1.4
Assignee | ||
Updated•18 years ago
|
Attachment #259086 -
Flags: review?(smontagu)
Comment 22•18 years ago
|
||
Comment on attachment 259086 [details] [diff] [review]
The not-so-quick fix
This has to be the most generous response to a sr request ever :) I wanted to do something like this for trunk after getting the quick fix in for TB2. Thanks for beating me to it.
Attachment #259086 -
Flags: review?(smontagu) → review+
Comment 23•18 years ago
|
||
Landed on 1.8.0 branch. Thanks for the 1.8 checkin, Scott.
Keywords: fixed1.8.0.12
Comment 24•18 years ago
|
||
It would be good to have a test for this, but do we have a way to force a locale when running tests?
Flags: in-testsuite?
Assignee | ||
Updated•18 years ago
|
Attachment #259086 -
Flags: superreview?(cbiesinger)
Comment 25•18 years ago
|
||
Comment on attachment 259086 [details] [diff] [review]
The not-so-quick fix
The function here has a locale argument, doesn't it? But the system may not have the hi_IN locale installed, so testing this may not be possible...
nsDateTimeFormatUnix.cpp
+ stringOut.AssignLiteral("");
I'd make that stringOut.Truncate();
+ if (NS_SUCCEEDED(rv))
+ stringOut.Assign(unichars, unicharLength);
I think you could use stringOut.SetLength/BeginWriting to write directly to that string.
Attachment #259086 -
Flags: superreview?(cbiesinger) → superreview+
Reporter | ||
Comment 26•18 years ago
|
||
(In reply to comment #23)
> Landed on 1.8.0 branch. Thanks for the 1.8 checkin, Scott.
>
I just upgraded to 2.0.0.0_rc1 and the problem still remains. Is the 1.8.0 branch not going to be used for thunderbird 2.0.0.0 ?
Comment 27•18 years ago
|
||
thunderbird 2 was shipped from 1.8.1.3. So this fix will show up in the first security update after the release. Sorry for the confusion.
Updated•18 years ago
|
Status: ASSIGNED → NEW
Component: Mail Window Front End → Internationalization
Flags: blocking-thunderbird2+
Product: Thunderbird → Core
Target Milestone: --- → mozilla1.9alpha5
Comment 29•6 years ago
|
||
nsDateTimeFormatUnix is gone, so if there is new issue that uses ICU, we should file a new bug.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•