Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utf8 "\xD86C" does not map to Unicode at ./tests/testdbs.pl line 130, <FILE> line 74562. #26

Open
suneelkv opened this issue Jan 6, 2014 · 3 comments

Comments

@suneelkv
Copy link

suneelkv commented Jan 6, 2014

Hi All,

I'm trying to take the libcangjie and just to check the library have done all the steps mentioned.
./autogen.sh
./configure
make
make install

When I've tried to run the ./testdbs.pl


[root@localhost tests]# ./testdbs.pl
Checking tables/cj3-sc.txt...
Cannot open file data/cj3-sc.mb: No such file or directory


So got a doubt and has done a make install check and found the below error.


Checking tables/cj3-sc.txt...
Checking tables/cj3-tc.txt...
Checking tables/cj3-cc.txt...
Checking tables/cj3-cjk.txt...
utf8 "\xD86C" does not map to Unicode at ./tests/testdbs.pl line 130, line 74562.
utf8 "\xDCDE" does not map to Unicode at ./tests/testdbs.pl line 130, line 74562.


Please help me how to proceed further

Regards,
Suneel

@wanleung
Copy link
Owner

wanleung commented Jan 6, 2014

my $db_value = encode_utf8($table_value);
$db->db_get($key, $db_value, DB_GET_BOTH);
if ($table_value ne decode_utf8($db_value)) {

If you are using locale in UTF8, rermove the encode_utf8 and decode_utf8 at lin 135, line 137 in ./testdbs.pl.
Because the Perl Encode library in UTF8 has some problem in UTF8 encoding.

And what project are you using?
As this project is outdated and not fit into the new ibus-cangjie.

And now all our library are moved to here
https://github.com/Cangjians/

@suneelkv
Copy link
Author

suneelkv commented Jan 7, 2014

Hi Wanleung,

Thanks for the prompt response.
I've done the changes mentioned by you above in the testdbs.pl
Please see the Changed code below


        my $db_value = $table_value;
        $db->db_get($key, $db_value, DB_GET_BOTH);
        if ($table_value ne $db_value) {

But still couldn't able to compile yet, the issue is still existing.

The reason why I'm trying this library, I've to prove a sample program where it should key in the input from user and translate it and show me the text.
Thru one of my colleage I came to know about this library.
Have even tried the library available in this path
https://github.com/Cangjians/libcangjie
Even there I am facing some issue while running the test_cangjie


[root@localhost tests]# ./test_cangjie
lt-test_cangjie: tests/test_cangjie.c:40: test_cangjie_new: Assertion `ret == 0' failed.
Aborted (core dumped)


Please help me to proceed further.

Regards,
Suneel

@bochecha
Copy link
Contributor

bochecha commented Jan 7, 2014

You already received an answer (from me, hi! :P) on the bug report you opened in Cangjians/libcangjie.

As Wan Leung mentioned, wanleung/libcangjie is deprecated so there isn't much point in continuing to ask here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants