Cannot find UnicodeData.txt

Bug #967828 reported by Daniel Cordeiro on 2012-03-28
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
unicode (Ubuntu)
Undecided
Unassigned

Bug Description

Hi,

Every time I run unicode searching something like, for instance:

$ unicode a acute

I get the following message:

Cannot find UnicodeData.txt, please place it into
/usr/share/unidata/UnicodeData.txt,
/usr/share/unicode/UnicodeData.txt, ~/.unicode/ or current
working directory (optionally you can gzip it).
Without the file, searching will be much slower.

Unicode still works and show the results, but I'm wondering if UnicodeData.txt shouldn't have been included in the package.

This error never happend in the previous version of Ubuntu.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: unicode 0.9.5
ProcVersionSignature: Ubuntu 3.2.0-20.33-generic 3.2.12
Uname: Linux 3.2.0-20-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.95-0ubuntu1
Architecture: amd64
Date: Wed Mar 28 19:14:39 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
PackageArchitecture: all
SourcePackage: unicode
UpgradeStatus: No upgrade log present (probably fresh install)

Daniel Cordeiro (dcordeiro) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unicode (Ubuntu):
status: New → Confirmed
Sven Heinicke (svenmh) wrote :

Install the unicode-data packages fixes this. Which is a on the unicode packages Suggests: list.

Daniel Cordeiro (dcordeiro) wrote :

Hum.. the insteresting thing is that I though about that.

But when I went to synaptic package manager, right-clicked on the unicode package and saw the list of suggested packages, the unicode-data option was not enabled for installation (even if the unicode-data is not actually installed).

Do you think that it can be a bug in the unicode package description (that does not allow synaptic to see the unicode-data package as a valid installable package) or a bug in synaptic?

Daniel Cordeiro (dcordeiro) wrote :

Also, the message in the output of the unicode program seems like an error and should not appear if the lack of UnicodeData.txt file is not mandatory. The previous versions of unicode didn't have this behaviour.

Sven Heinicke (svenmh) wrote :

I am not an Ubunut developer, so hopefully somebody will take notice soon, but:

RE#4: I used packages.ubuntu.com to search for UnicodeData.txt and saw that it was in unicode-data and installed it before I noticed it was a suggestion. I did it all from command line, sorry.

RE#5: While it doesn't seem required it does get some extra info from it (silly emoji):

sven@gen-sven2:~$ unicode beer

Cannot find UnicodeData.txt, please place it into
/usr/share/unidata/UnicodeData.txt,
/usr/share/unicode/UnicodeData.txt, ~/.unicode/ or current
working directory (optionally you can gzip it).
Without the file, searching will be much slower.

sven@gen-sven2:~$ sudo apt-get install unicode-data
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  unicode-data
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/7,122 kB of archives.
After this operation, 18.4 MB of additional disk space will be used.
Selecting previously unselected package unicode-data.
(Reading database ... 219544 files and directories currently installed.)
Unpacking unicode-data (from .../unicode-data_6.0.0-1_all.deb) ...
Setting up unicode-data (6.0.0-1) ...
sven@gen-sven2:~$ unicode beer
U+1F37A BEER MUG
UTF-8: f0 9f 8d ba UTF-16BE: d83cdf7a Decimal: 🍺
🍺
Category: So (Symbol, Other)
Bidi: ON (Other Neutrals)

U+1F37B CLINKING BEER MUGS
UTF-8: f0 9f 8d bb UTF-16BE: d83cdf7b Decimal: 🍻
🍻
Category: So (Symbol, Other)
Bidi: ON (Other Neutrals)

sven@gen-sven2:~$

Daniel Cordeiro (dcordeiro) wrote :

It may be a problem with the package description. When running:

$ LC_ALL=C apt-get --install-suggests -s --reinstall install unicode
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 32 not upgraded.
Inst unicode [0.9.5] (0.9.5 Ubuntu:12.04/precise [all])
Conf unicode (0.9.5 Ubuntu:12.04/precise [all])

apt-get did not attempt to install unicode-data (it is not currently installed).

Sven Heinicke (svenmh) wrote :

I would say just do:

sudo apt-get install unicode-data

to get rid of the unicode warning. If there is apt-get issue that is outside the scope of this bug. Never used it, maybe I'll start trying.

Ian Turner (vectro) wrote :

Seems pretty clear that if the unicode-data package is now required to use the unicode package (as seems to be the case), then the relationship should be Depends, not Suggests.

no longer affects: unicode (Debian)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.