Merge lp://staging/~hideaki-t/wikkid/unicode_test into lp://staging/wikkid

Proposed by Hideaki Takahashi
Status: Needs review
Proposed branch: lp://staging/~hideaki-t/wikkid/unicode_test
Merge into: lp://staging/wikkid
Diff against target: 146 lines (+17/-13)
7 files modified
wikkid/app.py (+1/-1)
wikkid/dispatcher.py (+2/-2)
wikkid/filestore/bzr.py (+8/-6)
wikkid/formatter/creoleformatter.py (+1/-0)
wikkid/skin/loader.py (+1/-1)
wikkid/view/textfile.py (+3/-2)
wikkid/view/urls.py (+1/-1)
To merge this branch: bzr merge lp://staging/~hideaki-t/wikkid/unicode_test
Reviewer Review Type Date Requested Status
Aaron Bentley (community) Needs Fixing
Wikkid Hackers Pending
Review via email: mp+60980@code.staging.launchpad.net

Description of the change

I developed non-ASCII character support(path/URI, contents) for wikkid.
I think this contains the solution for Bug #614286(without creole parser changes)

To post a comment you must log in.
Revision history for this message
Tim Penhey (thumper) wrote :

On Sat, 14 May 2011 16:53:24 you wrote:
> Hideaki Takahashi has proposed merging lp:~hideaki-t/wikkid/unicode_test
> into lp:wikkid.
>
> Requested reviews:
> Wikkid Hackers (wikkid)
>
> For more details, see:
> https://code.launchpad.net/~hideaki-t/wikkid/unicode_test/+merge/60980
>
> I developed non-ASCII character support(path/URI, contents) for wikkid.
> I think this contains the solution for Bug #614286(without creole parser
> changes)

Thanks for that. the changes generally look good.

Do you have any suggestions for testing it?

Tim

Revision history for this message
Hideaki Takahashi (hideaki-t) wrote :

Hello,
I'm sorry my delay.

Thank you for your review.

Ideally all operations should be tested.

I think the following tests will be performed at least.
 * file/uri operations(non-ASCII)
  * create new file
  * open(view)
  * edit & save
  * display the file name in a list view
 * contentes rendering
  * rendering the contents that contains non-ASCII characters.

Actually I have not unittested that yet. It was regression tested by "make check". and I tested it for the Japanese characters handling using web browser manually.

I propose to create(or add) Japanese version of existing tests. What do you think?
(maybe it is ugly for non japanese speakers if I add Japanese version to existing tests.)

And, I think it should be tested by Latin characters. I just tested it for Japanese characters.

Hideaki

Revision history for this message
Aaron Bentley (abentley) wrote :

This doesn't look correct, because the WorkingTree API accepts unicode strings (e.g. in path2id), not bytes or escaped values.

review: Needs Fixing
Revision history for this message
Hideaki Takahashi (hideaki-t) wrote :

Thank you for pointing that out. I did not realize that specs.
I'll check and fix the issue.

Hideaki

Unmerged revisions

61. By Hideaki Takahashi

revert #50/#51.

pass unicode string to the creole parser.

60. By Hideaki Takahashi

support non-ascii contents in preview.

59. By Hideaki Takahashi

merge trunk

58. By Hideaki Takahashi

merge trunk changes.

57. By Hideaki Takahashi

merge trunk changes

56. By Hideaki Takahashi

Convert content to utf-8.
Use safe_utf8 function provided by bzrlib to convert to utf-8.

55. By Hideaki Takahashi

don't decode string object.

54. By Hideaki Takahashi

Support MS Windows environment.
Use os module insted of bzrlib.urlutils for non bzr controled contents.

53. By Hideaki Takahashi

At first, convert the path string to unicode.

52. By Hideaki Takahashi

support non ascii filename/URI

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches