Closed
Bug 270580
Opened 20 years ago
Closed 20 years ago
Cannot print if first printing trigger is javascript(window.print()) with a printer with non-Latin1 (e.g. Japanese) characters in its name
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: masayuki, Assigned: jshin1987)
References
()
Details
(Keywords: fixed1.7.6, intl)
Attachments
(1 file, 2 obsolete files)
1.17 KB,
patch
|
jshin1987
:
review+
bzbarsky
:
superreview+
asa
:
approval-aviary-
caillon
:
approval1.7.6+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041117 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041117 On Win9x, if first printing is called by javascript(window.print()), common dialog cannot find the default printer. But if the printer name is made by only latain1, this problem is not reproduced. Reproducible: Always Steps to Reproduce: 1. Include non-Latain1 character into default printer name. 2. Start the Mozilla. 3. Click the URL of this bug. Actual Results: Printer is not found. Expected Results: Common dialog is shown.
Reporter | ||
Comment 1•20 years ago
|
||
If Bug 270812 is fixed, this problem will not be reproduced. But not fixed...
Reporter | ||
Comment 2•20 years ago
|
||
O.K. This patch will fix this bug!
Reporter | ||
Updated•20 years ago
|
Attachment #166548 -
Flags: review?(jshin)
Assignee | ||
Comment 3•20 years ago
|
||
Comment on attachment 166548 [details] [diff] [review] Patch rv1.0 >? gfx/src/windows/dependentLibs.h >? gfx/src/windows/gkgfxwin.pdb >Index: gfx/src/windows/nsDeviceContextSpecWin.cpp >=================================================================== >+ nsCAutoString newNameNative(name); >+ nsAutoString newName; >+ NS_CopyNativeToUnicode(newNameNative, newName); You can just do this: nsAutoString newName; NS_CopyNativeToUnicode(nsDependentCString(name), newName);
Attachment #166548 -
Flags: review?(jshin)
Reporter | ||
Comment 4•20 years ago
|
||
Attachment #166548 -
Attachment is obsolete: true
Reporter | ||
Updated•20 years ago
|
Attachment #166645 -
Flags: review?(jshin)
Assignee | ||
Comment 5•20 years ago
|
||
Comment on attachment 166645 [details] [diff] [review] Patch rv1.1 > nsString newName; >- newName.AssignWithConversion(name); >+ NS_CopyNativeToUnicode(nsDependentCString(name), newName); Gee, why did you go back to |nsString newName|? |nsAutoString newName| is better than |nsString newName| because |newName| is shorter than 64 characters in most cases. See http://www.mozilla.org/projects/xpcom/string-guide.html
Attachment #166645 -
Flags: review?(jshin)
Reporter | ||
Comment 6•20 years ago
|
||
Attachment #166645 -
Attachment is obsolete: true
Reporter | ||
Updated•20 years ago
|
Attachment #166672 -
Flags: review?(jshin)
Assignee | ||
Comment 7•20 years ago
|
||
Comment on attachment 166672 [details] [diff] [review] Patch rv1.2 r=jshin
Attachment #166672 -
Flags: review?(jshin) → review+
Reporter | ||
Updated•20 years ago
|
Attachment #166672 -
Flags: superreview?(bzbarsky)
Comment 8•20 years ago
|
||
Comment on attachment 166672 [details] [diff] [review] Patch rv1.2 sr=bzbarsky
Attachment #166672 -
Flags: superreview?(bzbarsky) → superreview+
Reporter | ||
Comment 9•20 years ago
|
||
Comment on attachment 166672 [details] [diff] [review] Patch rv1.2 The risk of this patch is low.
Attachment #166672 -
Flags: approval1.8a5?
Attachment #166672 -
Flags: approval1.7.x?
Attachment #166672 -
Flags: approval-aviary?
Attachment #166672 -
Flags: approval1.8a5?
Reporter | ||
Comment 10•20 years ago
|
||
Jungshik: Please check-in to Trunk.
Reporter | ||
Updated•20 years ago
|
Attachment #166672 -
Flags: approval1.7.6?
Reporter | ||
Updated•20 years ago
|
Flags: blocking1.7.6?
Flags: blocking1.7.5?
Flags: blocking-aviary1.0?
Comment 11•20 years ago
|
||
Comment on attachment 166672 [details] [diff] [review] Patch rv1.2 1.0 has shipped and we're looking to the trunk for future Firefox releases.
Attachment #166672 -
Flags: approval-aviary? → approval-aviary-
Updated•20 years ago
|
Flags: blocking-aviary1.0? → blocking-aviary1.0-
Comment 12•20 years ago
|
||
Comment on attachment 166672 [details] [diff] [review] Patch rv1.2 1.7.5 has shipped. Moving request to 1.7.6.
Attachment #166672 -
Flags: approval1.7.5?
Reporter | ||
Comment 14•20 years ago
|
||
Jungshik: Please check-in the patch to Trunk.
Assignee | ||
Comment 15•20 years ago
|
||
sorry for the delay. fix checked in
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 16•20 years ago
|
||
not blocking 1.7.6 but we'd take the patch if in quickly. add fixed1.7.6 keyword when checked-in.
Flags: blocking1.7.6? → blocking1.7.6-
Comment 17•20 years ago
|
||
Comment on attachment 166672 [details] [diff] [review] Patch rv1.2 a=caillon (on behalf of drivers) for 1.7.6. Please land this quickly.
Attachment #166672 -
Flags: approval1.7.6? → approval1.7.6+
Assignee | ||
Updated•20 years ago
|
Keywords: fixed1.7.6
You need to log in
before you can comment on or make changes to this bug.
Description
•