Related Rule
Denmark
Practice Relating to Rule 127. Respect for Convictions and Religious Practices of Persons Deprived of Their Liberty
Denmark’s Directive on the Ban on Torture (2008) states:
Central to the issue [of the ban on torture and other cruel, inhuman or degrading treatment or punishment] is that detainees are treated well and humanely.
Examples:
Was the detainee subjected to violations of their modesty or honour? (in this regard, a person’s religious beliefs may mean that certain acts that would be considered less intrusive to other individuals, will actually be perceived as severe violation[s]). 
Denmark, Forbud Mod Tortur og Anden Grusom, Umenneskelig Eller Nedværdigende Behandling Eller Straf, FKODIR 005-01, Forsvarskommandoen, September 2008, pp. 4–5.
Denmark’s Military Criminal Code (1973), as amended in 1978, provides:
Any person who uses war instruments or procedures the application of which violates an international agreement entered into by Denmark or the general rules of international law, shall be liable to the same penalty [i.e. a fine, lenient imprisonment or up to 12 years’ imprisonment]. 
Denmark, Military Criminal Code, 1973, as amended in 1978, § 25(1).
Denmark’s Military Criminal Code (2005) provides:
Any person who deliberately uses war means [“krigsmiddel”] or procedures the application of which violates an international agreement entered into by Denmark or international customary law, shall be liable to the same penalty [i.e. imprisonment up to life imprisonment]. 
Denmark, Military Criminal Code, 2005, § 36(2).
In 2006, in a report on the detention and transfer of persons in Afghanistan in 2002, Denmark’s Ministry of Defence stated:
International humanitarian law contains in Additional Protocol I to the Geneva Conventions, a series of basic fundamental guarantees, which applies to any person in a conflicting party’s custody. The persons to whom it applies, for example people who do not have the status of prisoners of war, must always be … guaranteed the right to … belief and religion. 
Denmark, Report on Factual and Legal Matters Relating to Danish Forces’ Detention and Transfer of Persons in Afghanistan in the First Half of 2002, Ministry of Defence, 13 December 2006, p. 4.